It's in Standards mode.

-----Original Message-----
From: Richard Grevers [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 20, 2008 7:26 PM
To: Hayley Kinash
Cc: css-d@lists.css-discuss.org
Subject: Re: [css-d] Absolutely positioned div breaking out of parent in IE

On 2/20/08, Hayley Kinash <[EMAIL PROTECTED]> wrote:
> I've got an absolutely positioned div inside a relatively positioned 
> div,  but in IE the child div is breaking out of the parent and uses 
> the body as  its parent.  There's a width and a height on the parent 
> div, and all divs  above the parent have position:relative and a 
> width.  It behaves as expected  in FF and Safari.
>
>  I can't post the site URL right now, so I'll post code.  Thanks for 
> any  help!
>
>  <div id="container">
>    <div id="wrapper">
>      <div id="menu">
>         (inside is Macromedia's mm_menu, which is what is jumping out 
> of the  parent div, but is absolutely positioned)
>      </div>
>    </div>
>  </div>
>
>  #container {
>         margin-left: auto;
>         margin-right: auto;
>         width: 761px;
>         background-color:#ffffff;
>         position:relative;
>  }
>
>  #wrapper {
>         width:577px;
>         float:right;
>         text-align:left;
>         position:relative;
>  }
>
>  #menu {
>         position:relative;
>         width:538px;
>         height:30px;
>         text-align:left;
>         padding-left:10px;
>         padding-right:29px;
>         background-color:#318b4d;
>         }
>
Is your doctype one that will trigger quirks mode rendering in IE?
>From memory, getting the parent wrong for absolute positioned elements was
an IE5 / 5.5 bug, and might have only been fixed for standards mode in IE6.


--
Richard Grevers, New Plymouth, New Zealand Dramatic Design
www.dramatic.co.nz


______________________________________________________________________
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/

Reply via email to