[thelist] CSS help for the Linux Foundation

Lee Kowalkowski lee.kowalkowski at googlemail.com
Thu Jun 28 03:30:23 CDT 2007


On 28/06/07, ryan <ryan at northxsouth.com> wrote:
> > font-size can be overridden, possibly to the equivalent of, say, 18px.
> > The result is unreadable (or barely readable) text because line-height
> > is still 14px.
>
> So, what is your suggestion to be able to take advantage of CSS
> possibilities regarding font size and line spacing? -ryan

Line height doesn't need a unit, without a unit, you're specifying a
multiplier, similar to using percentages or ems.  Better to be in the
habit of specifying line heights without units.

If you had a font-size of 12px and a line height of 14px, you should
use a line-height of 1.2, (same as 1.2em or 120%).  1.2 is most
browser's default line-height.  Most style guides say this is too
small for paragraph text, increase for better legibility (between 1.4
and 1.6: http://www.sitepoint.com/print/anatomy-web-fonts).

-- 
Lee



More information about the thelist mailing list