Padding Parameters

padding-top
This parameter lets you specify the padding (like cellpadding with normal tables) at the top of an element. The padding will have the same background colour as the element does.

H1 {padding-top: 5px;}

padding-right
This parameter lets you specify the padding (like cellpadding with normal tables) to the right of an element. The padding will have the same background colour as the element does.

H1 {padding-right: 5px;}

padding-bottom
This parameter lets you specify the padding (like cellpadding with normal tables) at the bottom of an element. The padding will have the same background colour as the element does.

H1 {padding-bottom: 5px;}

padding-left
This parameter lets you specify the padding (like cellpadding with normal tables) to the left of an element. The padding will have the same background colour as the element does.

H1 {padding-left: 5px;}

padding
This parameter lets you specify the general padding (like cellpadding with normal tables) on all sides of the element. The padding will have the same background colour as the element does.

H1 {padding: 10px;}