CSS Padding: 2 & 4 Values
#1 26-11-2010 
I can never remember this - so am noting it here Smile

Four padding values can be declared at once by either specifying two or four values. When only using two values, the first will define the padding on the top and bottom, while the second will define the padding on the left and right.

When using the four value padding specification, the corresponding directions are: top, right, bottom, left. To help you remember what the order is, just remember that it starts at the top and then moves clockwise until it reaches the left. The examples below shows partial (2) and complete (4) padding usage.

PHP Code:
padding5px 15px
border1px solid black
padding0px 5px 10px 3px
border1px solid red;

The site don't jive? PRESS F5 Flower


Sorry, that is a members only option