padding

Previous- padding-left  |  Next-border-top-width

Description

An element's padding is the amount of space between the border and the content of the element. Between one and four values are given, where each value is either a length or a percentage.

If four values are given, they apply to top, right, bottom, and left padding, respectively. If one value is given, it applies to all sides. If two or three values are given, the missing values are taken from the opposite side.


Initial Value : not defined

Applies to : all elements

Inherited : no

Possible Values
[ <length> | <percentage>  inherit ]{1,4}

Example(s)
h1 {padding: 1em 2em;
}

Previous- padding-left  |  Next-border-top-width