Hey peeps,
I have an issue (about the third time I've ran into it actually) where I have a container which holds a left and right div.
If they are of different lengths (right being longer than left or the other way around) how can I get the other one to stretch [in height] without using Javascript.
I don't want to have to result in table and I thought inherit would do it (but it just inherits auto). There doesn't seem to be an easy answer. Or should I just use tables!? Anything wrong with that?
This problem is blowing my mind for how stupidly simple it should be...
Thanks in advance!
edit: I'll give an example:
<body style="background: #000000 url(????.com);">
<div id="container" style="margin:0 auto; width:996px; height: auto; background: transparent; overflow:hidden;">
<div id="left" style="float:left; width:690px">
<div style="background-color:#FFFFFF;">Content</div>
<div style="background-color:#FFFFFF;">content</div>
</div>
<div id="right" style="float:left; width:306px">
<div style="background: transparent;">Content<br />Content<br />content<br/>Last line</div>
<div style="background-color:#FFFFFF;">Content</div>
</div>
</div>
</body>
As you would know, the left is much smaller than the right. Height:100% seems to do nothing.
Result: it's impossible without JS support. Cheers all.