CSS Font Size Strategy

I prefer a font size strategy based on percentage modifiers. This strategy works pretty reliably across platforms, and it preserves the functionality of browser font resizing (unlike a pixel-based method).

In a base.css stylesheet, I define the following rules:

body {
font-family: "Trebuchet MS", Helvetica, Arial, sans-serif;
font-size: 100.01%;
}

p, table {
font-size: 75.01%;
}

Reply

The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.

More information about formatting options