HighDots Forums  

repost: abs positioning probs in IE

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss repost: abs positioning probs in IE in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alexander Ross
 
Posts: n/a

Default repost: abs positioning probs in IE - 09-05-2006 , 05:48 PM






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;
}




Reply With Quote
  #2  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: repost: abs positioning probs in IE - 09-05-2006 , 06:11 PM






Quote:
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.
It doesn't make sense. It cannot make sense. Absolute position elements
are removed from the flow, and cannot be affected by, or have an effect on,
any other page element (with the exception of a relatively positioned
ancestor, but even in that case, it's arguable).

But what exactly is it you are seeing that you don't feel you should?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Alexander Ross" <aross (AT) dosomething (DOT) org> wrote

Quote:
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;
}






Reply With Quote
  #3  
Old   
Alexander Ross
 
Posts: n/a

Default Re: repost: abs positioning probs in IE - 09-06-2006 , 09:32 AM



Quote:
Absolute position elements are removed from the flow, and cannot be
affected by, or have an effect on, any other page element
Exactly ... are you seeing the same?

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...

AHHHHHHH




Reply With Quote
  #4  
Old   
Gary White
 
Posts: n/a

Default Re: repost: abs positioning probs in IE - 09-06-2006 , 11:35 AM



On Wed, 6 Sep 2006 09:32:04 -0400, "Alexander Ross"
<aross (AT) dosomething (DOT) org> wrote:

Quote:
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


Reply With Quote
  #5  
Old   
Alexander Ross
 
Posts: n/a

Default Re: repost: abs positioning probs in IE - 09-06-2006 , 01:50 PM



no dice ...

I even tried changing to html4.01 strict

"Gary White" <reply (AT) newsgroup (DOT) please> wrote

Quote:
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



Reply With Quote
  #6  
Old   
Gary White
 
Posts: n/a

Default Re: repost: abs positioning probs in IE - 09-06-2006 , 02:26 PM



On Wed, 6 Sep 2006 13:50:39 -0400, "Alexander Ross"
<aross (AT) dosomething (DOT) org> wrote:

Quote:
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


Reply With Quote
  #7  
Old   
Alexander Ross
 
Posts: n/a

Default Re: repost: abs positioning probs in IE - 09-06-2006 , 03:40 PM



I definitly shouldnt have to do this, but putting the logo div inside the
floated div worked



"Gary White" <reply (AT) newsgroup (DOT) please> wrote

Quote:
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



Reply With Quote
  #8  
Old   
Gary White
 
Posts: n/a

Default Re: repost: abs positioning probs in IE - 09-06-2006 , 04:59 PM



On Wed, 6 Sep 2006 15:40:40 -0400, "Alexander Ross"
<aross (AT) dosomething (DOT) org> wrote:

Quote:
I definitly shouldnt have to do this, but putting the logo div inside the
floated div worked

Glad you got it working, but you still need to take care of some of the
flaky code.

Gary


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.