-
Step 1
Use CSS shorthand for fonts. Instead of writing out "font-size", "font-family," you can just tap out a line like this: font em/1.5em italic sans serif
-
Step 2
Utilize CSS shorthand for background. Again, you're skipping commands for color and other attributes. Your CSS line should look something like this: background: #fff url(image.gif) no-repeat top right
-
Step 3
Create easy lists with CSS shorthand. The type, position, and image properties of a list can be changed in CSS shorthand, without listing them.
-
Step 4
Apply CSS shorthand to margins and spacing. For margin settings, you can use a CSS shorthand line including integers for the four dimensions, and the unit px (pixels). Your CSS shorthand would look like this: 1px 2px 1px 2px. Alternately, you can make shorter CSS shorthand using just three or two numbers.
-
Step 5
Use CSS shorthand for borders. Again, some aspects of borders, like width, color and style can be set using CSS shorthand commands similar to those above.







