Specifies the left coordinate of a positioned element.
A positioned element is an element whose position property is set to relative, absolute or fixed. The value of the left property specifies the left position of the element including the padding, scrollbar, border and the margin.
One of the following values:
|Default. The left coordinate of the object is in accordance with the default layout of the page.|
|Takes the value of this property from the computed style of the parent element.|
|The left coordinate of the element in length units. For the supported length units, see the length page.|
|The left coordinate is the specified percentage of the width of the parent object.|
Example HTML code 1:
This example illustrates the use of the left property:
Did you find this example helpful?
Supported by tags:
User Contributed Comments