CSS property: font
The font property is a shorthand property used to set some or all of the font properties. Properties can be listed in any order.
Property values
Parameter |
Description |
|---|---|
[ font-family | font-size | font-style | font-weight ] |
This value is a whitespace-separated list of values for the font-family, font-size, font-style, and font-weight properties. You can set from one to four values. Properties can be listed in any order. See the descriptions of the individual properties for more information about valid values. |
inherit |
This value specifies that the element inherits the font property value from the containing element. |
Parent topic: CSS Properties