font | WebReference


Name: font

Description: Sets the font properties. Used as a type of shortcut, instead of listing each property separately.

Browser Compatibility: IE 3+ / NN 4+ / O 3.5+

Inherited: Yes


Code Example:

p {font: bold .9em sans-serif;}

Comments: The order of the properties should be:

Only a space is required between each property; a semicolon isn't necessary.