font: ***;
Browser |
|
---|
The font property is a shorthand property for setting all font properties.
p {
font: italic normal bold 80%/150% "Century Gothic";
}
Property | Value | Explanation |
---|---|---|
font | each value | sets style, small-caps, weight, size, line height, and font family |
font: italic normal bold 80%/150% "Century Gothic";
italic
: font-stylenormal
: font-variantbold
: font-weight80%
: font-size150%
: line-height"Century Gothic"
: font-family
The values other than the font-size and font-family properties can be omitted.
font: 80% "Century Gothic";
The values of the font-size and line-height properties are separated by a slash(/).
80%/150%
(The font-size value/The line-height value)