padding | WebReference

padding

Name: padding

Description: Sets the padding properties. Used as a type of shortcut, instead of listing each property separately.

Browser Compatibility: IE 4+ / NN 4+ / O 3.5+

Inherited: No

Values:

Code Example:

.newDiv {padding: 5em 10em 3em 10em;}

Comments: The padding properties are set in a clockwise order, beginning at the top: top, right, bottom, left.