CSS property: left

Description

Absolute position from the left edge of the containing block.

Syntax

left: <length> | <percentage> | auto;

Values

auto (by default)

For non-replaced elements, the effect of this value depends on which of related properties have the value auto as well.

<length>

The offset is a fixed distance from the reference edge. Negative values are allowed.

<percentage>

The offset is a percentage of the containing block's width. Negative values are allowed.

Versions

Examples

p {
    position: absolute;
    left: 0;
}