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
"sidebar" generate an absolutely
positioned box at the top right-hand corner
of its containing block:
#sidebar {
position: absolute;
top: 0;
right: 0;
}
Compatibility
SPEC
version initial inherited
CSS2 auto NO
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE7+
FULL FULL FULL FULL
Opera Safari Firefox Internet Explorer
9.2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
Full Full Full Full Full Full Full Full Buggy Buggy
Internet Explorer for Windows versions up to and including 6:
?– compute percentage values on the basis of the width of the parent block, rather
than that of the containing block
?– don??™t support the specification of both the position and the dimensions of an
absolutely positioned element using top, right, bottom, and left together;
they??™ll use the last vertical and horizontal position specified, and need the
dimensions to be specified using width and height
Internet Explorer for Windows versions up to and including 7 don??™t support the
value inherit.
Pages:
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420