[thelist] Re: CSS article

Martin Burns martin at easyweb.co.uk
Thu Jun 20 16:53:01 CDT 2002


On Thursday, June 20, 2002, at 04:57  pm, Tom Dell'Aringa wrote:

> But if there were a way to use relative sizes, I want to hear it
> because I'd like to do that.
> Obviously CSS keywords are not the way to go, so what is?

Tom

If you're happy with the flexibility required from your design with
relative sizing, and can live with the issues below, use em

Issues with em:
1) IE3 renders em as px so 2em renders as 2px
2) NN4 ignores em entirely
3) em at small sizes (<0.9 or so) can be very small if the user has
their font size set small

Combined with em, you can use %ages (so if the base size for your main
text area is 1em, you can set <p> to 90%=0.9em and  <h1> to
125%=1.25em), subject to the caveat that IE3 sizes percentages relative
to the user's default font size, not relative to the parent element (so
in that example, if you sized the main text area to 1.5em, IE3 would
still display <p> as 0.9em, not 1.35em)

More info at http://www.alistapart.com/stories/fear4/5.html

Cheers
Martin
_______________________________________________
email: martin at easyweb.co.uk             PGP ID:	0xA835CCCB
	martin at members.evolt.org      snailmail:	30 Shandon Place
   tel:	+44 (0)774 063 9985				Edinburgh,
   url:	http://www.easyweb.co.uk			Scotland




More information about the thelist mailing list