Style left Property
Style left Property
The left property is used to either set or return the left position of a positioned element. It is used for specifying the left positions of elements including padding, margins, and border.
Syntax:-
Its syntax is:- object.style.left OR object.style.left = auto | length | % | initial | inherit
Return:-
Its return is:- string having left position of a positioned element
Further Explanation:-
Value | Description |
---|---|
auto | Allow browser to set left position. |
length | Defines the left position in length units. |
% | Sets the left position in % of the height of the parent element |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |