The Sysadmin Notebook  

Sitemap

CSS Font Properties

CSS attributes for Fonts

Property Description Example Values
font A shorthand property for setting all of the properties for a font in one declaration font-style
font-variant
font-weight
font-size/line-height
font-family
caption
icon
menu
message-box
small-caption
status-bar
font-family
A prioritized list of font family names and/or generic family names for an element family-name
generic-family
font-size
Sets the size of a font xx-small
x-small
small
medium
large
x-large
xx-large
smaller
larger
length
font-size-adjust Specifies an aspect value for an element that will preserve the x-height of the first-choice font none
number
font-stretch Condenses or expands the current font-family normal
wider
narrower
ultra-condensed
extra-condensed
condensed
semi-condensed
semi-expanded
expanded
extra-expanded
ultra-expanded
font-style
Sets the style of the font normal
italic
oblique
font-variant
Displays text in a small-caps font or a normal font normal
small-caps
font-weight
Sets the weight of a font normal
bold
bolder
lighter
100
200
300
400
500
600
700
800
900