CSS Property: left
[this page | pdf | back links]
The CSS (CSS2) left property sets, for absolutely
positioned elements, the left edge of an element relative to the corresponding
edge of its nearest positioned ancestor. If such an element has no positioned
ancestors then it uses the document body and moves along with the page
scrolling. A ‘positioned’ element is one whose position is anything other than
static.
Valid property values
(other than inherit
and initial) are:
|
Value
|
Description
|
|
length
|
Sets edge position as a
CSS length. Can be
negative
|
|
%
|
Sets edge position in %
of containing element. Can be negative
|
|
auto
|
(default value).
Browser calculates edge position
|
|
Default Value:
|
auto
|
|
JavaScript syntax:
|
e.g. object.style.left="10px"
|
|
Inherited:
|
No
|
|
Animatable:
|
Yes
|
NAVIGATION LINKS
Contents | Prev | Next | CSS Properties