HomeReferencesCSS Properties

CSS Property: left

For absolutely positioned boxes, specifies how far from the left of the containing box (which is the first containing relatively positioned box or the page itself) the box should be.

For relatively positioned boxes, specifies how far from the left a box should be shifter.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Possible Values

  • [percentage]
  • [length]
  • inherit
  • auto (default)

Example


#sold {
	position: absolute;
	left: 150px;
}