Home Menu

left

The left CSS property specifies how far a box's left margin edge is offset to the right of the left edge of the box's containing block.

Syntax

CSS

left: value;

JS

object.style.left = "value";

Values

<'left'> = auto | <length-percentage>
auto

Automatically specified by the user agent.

<length-percentage> = [ <length> | <percentage> ]
<length>

Specifies the length using a number followed by a unit of measurement.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

Initial

auto

Examples

auto

length

percentage

JS

Internal

bottom

position

right

top

External

World Wide Web Consortium (W3C)

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms