I understand the height without width thing. I would've sworn I added the
height to get it into the proper position in the first place. What does the
inline display do? I assume it serves only to get rid of the duplicate
character bug in IE?

Thanks,

Mike

-----Original Message-----
From: Gunlaug Sørtun [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 02, 2008 11:27 AM
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: Re: [css-d] How do I get my DIVs to stay within their parent DIV?

Michael Stevens wrote:
> www.karmarbfi.com

You're introducing a 'hasLayout' trigger in IE/win with...
#content {height: 100%;}

Without a declared width to fall back on, IE6 will expand to full page-width
minus margins, which makes #content drop below the float.

You'll have better luck across browser-land if you replace your #content
styles with the following...

#content {
margin: 10px 10px 10px 0;
padding: 10px;
width: 706px;
float: right;
display: inline;
overflow-x: hidden;
}

...which turns the design into a two-column float construction that all
browsers support.

regards
        Georg
--      
http://www.gunlaug.no


______________________________________________________________________
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