There are two ways to write CSS: Longhand and Shorthand. Both accomplish the same thing. Using shorthand you can save keystrokes and minimize lines, which will decrease your file sizes.
Example of setting your font-properties the traditional longhand way:
font-size: 12px; font-family: "Times New Roman", Times; font-style: italic; font-weight: bold; line-height: 1.4em;
In shorthand, the CSS code becomes:
font: italic small-caps normal 12px/1.4em "Times New Roman", Times;
Leave a Reply