CSS property: padding-top

Description

The top padding of a box.

Syntax

padding-top: <length> | <percentage>;

Values

<length>

Specifies a fixed width.

0 (by default)
<percentage>

The percentage is relative to the width of the containing block, not the height (at least in a horizontal flow; in a vertical flow they are relative to the height).

Versions

Examples

body {
    padding-top: 50px;
}