Reply to Re: CSS font sizes - what's best to use?

Your name:

Reply:


Posted by K A Nuttall on 11/14/06 13:19

Steve Pugh wrote:

>> I recommend setting BODY to font-size:medium*,
>
> Which is the default.

So it is, silly me.

>> then your page wrapper DIV to font-size: 62.5%.
>
> What if you don't have a page wrapper div because you don't need
> one?

Virtually all my pages use them, so it suits me. YMMV.

> So we've set the basic font size to less than two thirds of the
> user's chosen default. Not a good start.

None of the child containers will actually use that size. It's just to
make relative font-size calculations easier.

>> Setting blocks using line-heights in percent or ems
>> allows for fonts to expand without overlapping.
>
> No. Don't set line-height in a unit at all, use bare numbers. If
> you set it in ems then it will be inherited at that size and won't
> respect any font-size changes in child elements.

You lost me there. That sounds like a useful thing to know, if only I
understood. Can you expand on that please?

--
K A Nuttall
www.yammer.co.uk
Re-type the e-mail address how it sounds, remove .invalid

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация