Forum Moderators: not2easy
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div>
<div style="float:left;width:100px;height:200px;background:silver;"></div>
<div style="position:absolute;left:100px;width:100%;height:200px;background:blue;"></div>
</div>
</body>
</html>
the code in this thread [webmasterworld.com] may help your situation..
In the code in the linked thread the "wrapper" and the "nav" are the 2 divs which are floating and it's the negative margin trick which enables them to appear side by side, the "content" div requires the clearing (positive) margin to stop content wrapping around the nav should it be longer...
The :after clearing trick is not needed for this layout either as the header/footers just require width 100% (for IE) and clear: both;
Suzy
I have a container holding
1) a header,
2) a floated center which holds
a) fixed width left float
b) fluid navigation
3) and a cleared (both) footer.
All of the above divs are relative.
However, I now have another problem.
For some reason, my doctypes are screwy.
After fixing the positioning with your suggestion (thanks again) I end up with two main problems. If I use XHTML Strict then Netscape throws some extra padding above my h, ul, and li tags (not IE). However, If I switch to Transitional, Netscape is fixed, but then IE doesn't properly display my h, ul, and li tags (messes up the background rendering of the tags). I'm at a complete loss as to what may be the problem.
back to that linked thread and the link to image by a member (which is now broken :() that image was a picture of what you are describing. This Moz phenomenon is not unique to this particular layout by any means, it will appear in most "container" div situations, it is a quirk (haven't quite got my head around if it's right or not yet) of the way it handles collapsing margins.
So what I do as a matter of course (in any layout I do) is to remove all default margins from all internal HTML elements, <hx>, <p> and <ul> especially, and then control any required spacing using padding. (or that border trick I mention in that previous post, if it's obvious/easy to put a border onto the container)
Suzy