style.left (Property)

A positioning reference point.


CSS level - 2
DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.left
CSS syntax:left: aPosition
Argument list:aPositionA left coordinate value

A CSS-P positioning style attribute that controls the location of an element relative to its containing parent element. The left edges of the two elements are used as the reference points.

The value can be specified in the usual pixel or fractional em-dash measurement units or the auto keyword can be used to let the browser do the positioning itself.

The exact positioning is affected by settings for padding, border, margin, and whether the position property is set to absolute or relative.

See also:Measurement units, style.bottom, style.pixelLeft, style.posLeft, style.right,