> > What does right/left do then? > > > > If you have a block element that is absolutely positioned, the left and > right rules determine the offset from the left or right hand side of > the > positioning context (the first non-statically positioned ancestor of > the > block; or the viewport if the block does not have a non-statically > positioned ancestor). This is also the case for relatively positioned > blocks, but much less common since relatively positioned blocks are > usually used just to provide a positioning context for absolutely > positioned blocks.
I believe the offset of relatively positioned elements is done in regard to their position in the normal flow, *not* in relation to a ancestor. They are *very* different from absolutely positioned elements. They can overlap surrounding boxes but do not disturb the flow, > Normally, you would not expect to see both left and right specified: > rather you would expect to see, say, left and top. It is possible to "size" absolutely positioned boxes via these values. For example left:10px;right:10px; will make the box stretch 10px from the left edge to 10px from the right edge of the parent that creates a positioning context. -- Regards, Thierry www.tjkdesign.com | www.ez-css.org | @thierrykoblentz ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
