Prev | Current Page 410 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


The Ultimate CSS Reference 278
left
left: { length | percentage | auto | inherit } ;
For absolutely positioned boxes, this
property specifies how far the left
margin edge of the box is offset to the
right of the left padding edge of its
containing block. However, should the
value for left be auto (the initial
value), the left margin edge of the box
is positioned at the left content edge of
its containing block.
For relatively positioned boxes, this
property specifies how far the left edge
of the box is offset to the right of the
position it would have had in the normal flow. If both right and left have a value
other than auto, the offset is over-constrained. If the direction property is ltr,
right will be ignored. If direction is rtl, left will be ignored.
Example
This style rule makes the element with ID
"nav" generate an absolutely positioned
box at the top left-hand corner of its
containing block:
#nav {
position: absolute;
top: 0;
left: 0;
}
Compatibility
SPEC
version initial inherited
CSS2 auto NO
BROWSER SUPPORT
Op9.


Pages:
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422