CSS Property: font
[this page | pdf | back links]
The CSS (CSS1) font property is a shorthand
property for setting the font properties of an element.
Valid property values
(other than inherit
and initial) are
defined by the elements of the shorthand. Shorthand elements (in the order in
which they appear):
-
font-style
-
font-variant
-
font-weight
-
font-size
i.e. line height (required)
-
font-family
(required)
|
Default Value:
|
See individual
properties
|
|
JavaScript syntax:
|
e.g. object.style.font="italic 12px arial"
|
|
Inherited:
|
Yes
|
|
Animatable:
|
See individual
properties
|
NAVIGATION LINKS
Contents | Prev | Next | CSS Properties