CSS Left Property

CSS 1

CSS 2

CSS 3

No Yes Yes

Description

Specifies the distance from the element's left outer margin to the left edge of the content block.

Syntax

left: [value];

Possible values

  • [length]
  • [percentage]
  • auto
  • inherit

Initial Value

Auto

Applies To

Positioned elements

Inherited

No

Media

Visual

Example

h1 {
display: block;
position: absolute;
top: 50px; right: 100px; bottom: 50px; left: 100px;
}


View All CSS Properties