Save time and effort, don't type out all this.

font-size: 1em;
line-height: 1.5em;
font-weight: bold;
font-style: italic;
font-variant: small-caps;
font-family: tahoma,serif;


Here are the same results using shorthand:


font: 1em/1.5em bold italic small-caps tahoma,serif


Both the font-size and the font-family must be specified.
If you don't specify the font-weight, font-style, or font-varient then these values will automatically default to a value of normal.

 

0 Response to “CSS shorthand for font formatting”

Leave a Reply