CSS property: margin-top

Description

The top margin of a box.

Syntax

margin-top: <length> | <percentage> | auto;

Values

<length>

Specifies a fixed width.

<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).

auto

Versions

Examples

p {
    margin-top: 50px;
}