Padding Variations

The declaration of padding property and its effect on element.

All four sides have padding of 10 pixels.

padding:10px 20px;
Top and bottom have padding of 10 pixels.
Right and left have padding of 20 pixels.

padding:10px 20px 30px;
Top is 10px
Left and right are 20px
Bottom is 30px

padding:10px 20px 30px 40px;
Top is 10px
Right is 20px
Bottom is 30px
Left is 40px