Latest

recent

CSS left Property

Definition

The left property specifies the left edge of an element.
Note: If the "position" property has a value of "static", the "left" property has no effect.
Inherited: No

JavaScript Syntax

CSS properties can also be dynamically changed with a JavaScript.
Scripting Syntax: object.style.left="100px"

Example

This example sets the left edge of the paragraph 20 px to the right of the left edge of the window:
p
{
position: absolute;
left: 20px
}
This example sets the left edge of the paragraph 20 px to the left of the left edge of the window:
p
{
position: absolute;
left: -20px
}

Possible Values

Value Description
auto Default. Lets the browser calculate the left position
% Sets the left position in % from the left edge of the window
length Sets the left position in px, cm, etc. from the left edge of the window. Negative values are allowed

Goto CSS3 and CSS2 complete reference
CSS left Property Reviewed by 1000sourcecodes on 21:03 Rating: 5
Powered by Blogger.