Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use ex for vertical dimensions ?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use ex for vertical dimensions ?
Authored by: VRic on Dec 05, '05 05:08:00PM

Notice that 1em is the width of the uppercase letter M in the current font, which is a good way of sizing horizontal elements to make sure they grow/shrink nicely with the text instead of messing up line wraps.

BUT:

- it is less appropriate for vertical dimensions, where ex should be used instead (1ex is the height of the lowercase letter x). Otherwise zoomed elements' proportions relative to the text will change, which can be bad.

- it's much better than fixed design, but it won't magically solve everything, because the text's font and size can change everywhere in the page's content.



[ Reply to This | # ]
Use ex for vertical dimensions ?
Authored by: xth on Dec 10, '05 05:53:37AM

So far ems have always seemed to work for me, but what you are saying is correct.



[ Reply to This | # ]