|
Helping ordinary people create extraordinary websites! |
CSS Shorthand PropertiesBy Trenton Moss2008-01-26
CSS margin and padding There are a number of different CSS shorthand commands for margin and padding, depending on how many of the sides of the containing element have the same Four different valuesUse:
...instead of
Three different valuesUse:
...instead of
Two different valuesUse:
...instead of
One different valueUse:
...instead of
The above rules also apply to Tutorial Pages: » CSS fonts » CSS background and lists » CSS margin and padding » CSS borders » Conclusion |
|