![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a div (#header_wrap div#logo) that is postion:absolute and it seems to be affected by (i.e. pushed to the right of) a float (#header_left) that appears further down in the continer(#header_wrap) ... that doesn't seem to make sense. |
|
I have a div (#header_wrap div#logo) that is postion:absolute and it seems to be affected by (i.e. pushed to the right of) a float (#header_left) that appears further down in the continer(#header_wrap) ... that doesn't seem to make sense. Any thouhgts??? link: http://dev.dosomething.org relivant html: div id="header_wrap" div id="logo"><a href="/"><img src="<?=$dir_theme?>/images/logo_ds.png" alt="Do Something" width="109" height="95" border="0"></a></div div id="header_left"> ... </div div id="header_right">... </div /div /div relivant css: /************ HEADER ***********/ div#header_wrap{ position: relative; } div#header_wrap div#logo{ width: 109px; position: absolute; top: -7px; left: -7px; margin: 0px; padding: 0px; z-index: 1; } div#header_wrap div#header_left{ width: 790px; float: left; margin: 0px 10px 5px 0px; } |
#3
| |||
| |||
|
|
Absolute position elements are removed from the flow, and cannot be affected by, or have an effect on, any other page element |
#4
| |||
| |||
|
|
http://dev.dosomething.org ... check out the logo. In FF it is at the top left (where it belongs), but in IE its over to the right of the gradiated blue, horizonatal containing box for the top nav. It shouldn't be there... |
#5
| |||
| |||
|
|
On Wed, 6 Sep 2006 09:32:04 -0400, "Alexander Ross" aross (AT) dosomething (DOT) org> wrote: http://dev.dosomething.org ... check out the logo. In FF it is at the top left (where it belongs), but in IE its over to the right of the gradiated blue, horizonatal containing box for the top nav. It shouldn't be there... Delete the empty line above the doctype so IE will render the page in standards mode instead of quirks mode and see what happens. Gary |
#6
| |||
| |||
|
|
I even tried changing to html4.01 strict |
#7
| |||
| |||
|
|
On Wed, 6 Sep 2006 13:50:39 -0400, "Alexander Ross" aross (AT) dosomething (DOT) org> wrote: I even tried changing to html4.01 strict Okay. I'm not sure if it is contributing, but after running the page through the HTML validator, I notice that you have a number of XHTML type self-closing tags while using an HTML doctype. Validating the CSS also turns up quite a few errors. You might want to look into those. Gary |
#8
| |||
| |||
|
|
I definitly shouldnt have to do this, but putting the logo div inside the floated div worked |
![]() |
| Thread Tools | |
| Display Modes | |
| |