CSS Blank :( Make parent DIV stretch in height
Posted: Tue Jul 19, 2005 6:01 am
I'm know I've done this plenty before and it's something that's completely dumb to have stumbled on but what am I missing to make the little DIV blocks cause the outer div to stretch to full height?
This is a simplified, brightened up snip to make it clear what I mean (that grey div hiding away in the background should be stretched with the colored ones.

It's gonna be a long day
This is a simplified, brightened up snip to make it clear what I mean (that grey div hiding away in the background should be stretched with the colored ones.
Code: Select all
<div id="e;content"e; style="e;width: auto; padding: 8px; background-color: #CCCCCC"e;>
<div style="e;height: 100px; width: 35%; position: relative; float: left; background-color: yellow"e;></div>
<div style="e;height: 100px; width: 65%; position: relative; float: right; background-color: orange"e;></div>
</div>
It's gonna be a long day