Visit Mozilla.org

CSS:left

From MDC

« CSS Reference

[edit] Summary

The left property specifies part of the position of positioned elements.

For absolutely positioned elements (those with position: absolute or position: fixed), it specifies the distance between the left margin edge of the element and the left edge of its containing block.

[edit] Syntax

left: <length> | <percentage> | auto | inherit ;

[edit] Values

<length> 
A length, can be negative, zero, or positive.
<percentage> 
A percentage of the containing block's width.

[edit] Examples

View Live Examples (FIXME)

div { 
   position: absolute;
   left: 20px; 
   height: 200px;
   border: 1px solid #000;
}

[edit] Notes

[edit] Specifications

[edit] Browser compatibility

Browser Lowest Version
Internet Explorer ?
Firefox 1
Netscape ?
Opera ?
Safari ?

[edit] See also

position, top, right, bottom