[thelist] percents or pixels?

Mark Howells mark at mountain.ch
Tue Mar 19 11:47:00 CST 2002


> If only we could say things
> like font-size:4 (in the 1-6 scale)

Like this?

h1 {font-size:1.5em}
h2 {font-size:1.4em}
h3 {font-size:1.3em}
h4 {font-size:1.2em}
h5 {font-size:1.1em}
h6 {font-size:1em}
p {font-size:1em}

Don't forget that <font size="2">Text</font> will actually size the font
based on the browser's base size and not on a fixed pixel basis. Try coding
a page with old font tags, then use the browser to resize the text.

See? Accessibility, not fixed sizing.

Regards
Mark Howells
<http://www.mark.ac/evl/>




More information about the thelist mailing list