Category | Subject | Sinopsys | Description | Example/Values |
---|---|---|---|---|
font | Shorthand property for the other font properties. The order of values is important, and is as follows: font {font-style font-variant font-weight font-size/line-height font-family;}. Any of these values may be omitted but order is important. | font: bold 12px italic Verdana, sans-serif; | ||
font-family | Used to declare specific font to be used, or a generic font family in order of preference. The generic families are: serif, sans-serif, monospace, cursive and fantasy. They must not have quotes around them. Multiword font names should have quotes to avoid confusion. | font-family: Verdana, sans-serif; | ||
font-style | Italic, normal font-style: italic; |
|||
font-variant | Likely to acquire more values in the future | normal, small-caps | ||
font-weight | bold, normal, lighter, bolder and numeric values 100-900 font-weight: bold; |
|||
font-stretch | ||||
font-size | Sets the absolute size (pt, in, cm, px), relative size (em, ex), or percentage of normal size.Keywords: xx-large, x-large, large, medium, small, x-small, xx-small, larger, smaller | font-size: 12px; | ||
font-size-adjust |