CSS Fonts

body {font-size:24pt;}

It's probably pretty obvious to you what this one does. What isn't so obvious is all the different values you may use for it. So here is a list of them and what they mean:

Absolute expression:

Just like clothes sized with these designations depend on the manufacturer, these values depend on the browser being used to determine the size.

Relative expression:

Just like the header suggests, these are relative to their parent element or if it's a root element, the browsers font setting.

Lengths:

Percentage:

A value of 150% will give you a font 1 1/2 times bigger.

Something to remember with these last two is that the value and its denotation can not have a space between them.

Support us by supporting our advertisers!




© 2004 Terry Lamrouex