You are here: Re: CSS font sizes - what's best to use? « HTML « IT news, forums, messages
Re: CSS font sizes - what's best to use?

Posted by K A Nuttall on 11/14/06 08:00

Beauregard T. Shagnasty wrote:

> No, no, no ... Set your body font to 100% (instead of the
> keyword), and then only set headings and footers to other sizes.
> That is all you need.
>
> http://k75s.home.att.net/fontsize.html

What is the point of setting BODY to 100%?

I saw a .net article using html { font-size: 100%; } the other day.
What's that all about? Is it a hack?

It's all well and good people harking on about liquid layouts and
medium typeface defaults, but not all sites want to look like techie
blogs. I work with graphic designers who regularly produce layouts with
some 11 and 12px fonts. It's what many people want.

IIRC the IE5 bug is that it displays text one size larger than the
other browsers by default. The Tan hack is useful for correcting this
for supporting IE5.

Using a default size of 'medium' works on the assumption that most
people are using the default of a medium=16px typeface. Setting the
page container to 62.15% reduces that to 10px. Then individual sections
can be sized-up again easily to match a designer's font specifications.

This is just one way to do it. But it's a way that's easy to work with
pre-determined font-sizes, in a graphic design.

None of this sets the font size absolutely on the user's browser.
People can scale fonts up and down (even on IE), because at no time are
absolute measurements used to define typefaces.

The next thing to do is to design your pages assuming that users CAN
and WILL resize their default font size. This means allowing for fluid
box heights and wrapping text, and testing for it.

That's my rationale at the moment, and I'm happy with it. If you think
it's wrong then please feel free to give another.

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

 

Navigation:

[Reply to this 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

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