> >>> Index and all inside pages: Neither Opera or The IEs are capable of >>> scaling line-height set in pixels. Try a raw number for line-height. >> >> wow. didn't even know i could do that. the w3 site doesn't even >> mention that you can use px, but everyone and their mom seem to, >> including ALA, some grid-layout people, etc. sheesh. i normally use >> em, when starting from scratch, but apparently that's wrong too? > > No, 'em' for line-height isn't wrong. The resulting line-height is just > calculated different from when raw numbers are used. > > For line-height:'em' values gives line-heights based on actual font-size > for an element's parent, which is ok if that's what you want. When raw > numbers (no unit) are used, line-height is calculated from actual > font-size of the element itself, which in most cases gives the best result. >
Since I'm still trying to get my mind around this (and the w3 rules are quite hard to parse IMO), I was just playing around with my own styles when I noticed that the original base line-height value for this project was set using %: font-size: 100%; This is taken directly from Eric Meyer's reset stylesheet http://meyerweb.com/eric/tools/css/reset/index.html And I always assume he knows what he's doing. Since he's also not changing the font size (100% pretty much means "say the same"), is this rule simply included to dictate the way line-height is calculated on descendants? josh ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/