Author Topic: suggestion: relative instead px (pixel) based font size  (Read 2632 times)

Offline domi

  • Dagobah Resident
  • *******
  • Posts: 929
suggestion: relative instead px (pixel) based font size
« on: January 18, 2006, 07:57:38 PM »
Hi,

A much overlooked issue with px based fonts is that users of IE5/Win and IE6/Win cannot increase/decrease the font size if the style sheet implements them with pixel values.

I recommend going to a relative sizing scheme.

Benifits:
- IE/Win can now increase/decrease text size
- style sheets become easier to maintain when using relative sizing (using em's or %)

As an illustration for relative sizing:

body {
   color: #1E3607;
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: small;
}

h1 {

font-size: 120%;

}

etc...


Cheers,

Dominique
« Last Edit: August 25, 2008, 05:18:40 PM by Kresnik »
While we all might like to think we can transform our world by praying and/or thinking positively, we must remember that there is a great deal of evidence that real transformations of the planet have repeatedly been cataclysmic. A philosophy which ignores this fact is courting disaster.
LKJ

  • Guest
suggestion: relative instead px (pixel) based font size
« Reply #1 on: January 18, 2006, 11:57:48 PM »
Hey, thanks for the tip, look for the new IE friendly css soon, so many changes have been made to it over the last few hours, that I am going to have to clean it up alot first...
« Last Edit: August 25, 2008, 05:19:16 PM by Kresnik »