Font properties

Property

Value

Description

Support level

Availability

font

List of font values

Specifies any or all of the font properties for an element.

CSS 2.1

3.8 or later

font-family

List of font names

Specifies the font family for an element.

CSS 2.1

3.8 or later

font-size

Percentage | Length | xx-small | x-small | small | medium | large | x-large | xx-large | smaller | larger

Specifies the font size for an element.

CSS 2.1

3.8 or later

font-style

normal | italic | oblique

Specifies the style of the font for an element.

CSS 2.1

3.8 or later

font-variant

normal | small-caps

Specifies whether the font for an element is rendered in small caps.

CSS 2.1

4.6 or later

font-weight

Integer>0 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | bold | bolder | lighter | normal

Specifies the thickness of the font for an element.

CSS 2.1

3.8 or later

Backgrounds & foregrounds | Box model | Fonts | Lists | Tables | Text | Visual effects | Visual formatting

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus