CSS left property

Usage

Used in conjunction with the position property to specify the position of the left side of an element.

Values

  • auto - default; the browser calculates the element position
  • [length] - sets the position of the left side of the element. Values can be positive or negative
  • [percentage] - sets the position of the left side of the element in % from the left hand side of the window

Example

Code:

h2 {
  position: relative;
  left: 100px;
}