![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
According to the CSS guide at http://www.westciv.com/, absolute positioning "...lets a developer say where the top left hand corner of an element should be located with respect to its parent element." If that's so, it seems like this layout should work: http://development2.holotech.net/absolute.html Columns 2 and 3 are in a wrapper with columns 1 and 4 floated alongside it. They should be positioned relative to that wrapper, but they are positioned relative to the page. Why is that? |
#3
| |||
| |||
|
|
Alan Little <alan (AT) n-o-s-p-a-m-phorm (DOT) com> wrote in news:Xns9449A8B277E45alanphormcom (AT) 216 (DOT) 196.97.132: According to the CSS guide at http://www.westciv.com/, absolute positioning "...lets a developer say where the top left hand corner of an element should be located with respect to its parent element." If that's so, it seems like this layout should work: http://development2.holotech.net/absolute.html Columns 2 and 3 are in a wrapper with columns 1 and 4 floated alongside it. They should be positioned relative to that wrapper, but they are positioned relative to the page. Why is that? Because "with respect to its parent element" isn't quite right. It really should be "with respect to its closest non-statically positioned ancestor element, or the entire viewport if there isn't a positioned ancestor element." Just set "position: relative" (without specifying any offsets) for the wrapper. That will make it the "containing block" for your columns. |
#4
| |||
| |||
|
|
Carved in mystic runes upon the very living rock, the last words of Eric Bohlman of comp.infosystems.www.authoring.stylesheets make plain: Alan Little <alan (AT) n-o-s-p-a-m-phorm (DOT) com> wrote in news:Xns9449A8B277E45alanphormcom (AT) 216 (DOT) 196.97.132: According to the CSS guide at http://www.westciv.com/, absolute positioning "...lets a developer say where the top left hand corner of an element should be located with respect to its parent element." If that's so, it seems like this layout should work: http://development2.holotech.net/absolute.html Columns 2 and 3 are in a wrapper with columns 1 and 4 floated alongside it. They should be positioned relative to that wrapper, but they are positioned relative to the page. Why is that? Because "with respect to its parent element" isn't quite right. It really should be "with respect to its closest non-statically positioned ancestor element, or the entire viewport if there isn't a positioned ancestor element." Just set "position: relative" (without specifying any offsets) for the wrapper. That will make it the "containing block" for your columns. That's good to know. Unfortunately, while Opera and IE agree with you, NS steadfastly and gleefully insists you're full of it. |
#5
| |||
| |||
|
#6
| |||
| |||
|
| http://development2.holotech.net/absabs.html Gahhhh! But then the footer doesn't float! ::sigh:: Screw it. |
![]() |
| Thread Tools | |
| Display Modes | |
| |