PDA

View Full Version : DIV not expanding



LynxGrr
Nov 21st, 2004, 01:50 PM
Hello!

Im working on my first layout using only DIVs and CSS, but i have a problem and its making my head hurt, because it seems so simple...


http://lynx.nakedhippy.co.uk/test/index.htm

My main content div (outlined in red) is expanding the main container div, but my menu container doesnt, and so its popping out of the bottom of the container.

Any help is appreciated

Thanks

View sourse to see the code

Span
Nov 21st, 2004, 03:00 PM
Hi,
you have to clear the float to make your .mainContainer div encompass it. Try adding a clearing break:


br.clear {
clear:both;
font-size:1px;
}


<div class="contentContainer">
Heres My Content
</div><br class="clear" />
</div>
</body>