WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: More Info on Using UL for links question

for

From: Tim Beadle
Date: Mar 17, 2004 6:03AM


On Wed, Mar 17, 2004 at 07:43:49AM -0500, Sonja Ray wrote:
> If your font are 90px(!) you could specify a bottom margin of 90px, or
> 100px, or whatever. If the font size if 9px, you could specify a bottom
> margin of 6 or 8 px.

You're right, but that only covers the font size as set by you, the designer.
Users can, and do, change their font size from the default (e.g. ctrl+/ctrl- in
mozilla/ns6+). Your defaults won't mean anything when the font size changes.

Sizing in em or ex means that the margin's size will change with the font size.
This is A Good Thing.

See www.brainjar.com for an example (change your font size and watch the column
width change proportionally).

Also see http://alistapart.com/articles/elastic/ for an article on the general
principle.

Regards,

Tim
--
"Remember: When you buy music you're helping lawyers sue 12 year old girls."
-- Alex Grant


----
To subscribe, unsubscribe, suspend, or view list archives,
visit http://www.webaim.org/discussion/