Vin0rz
10-29-2006, 03:01 PM
Hey, I got this HTML:
<div class="layer">
<div class="post">Lorem ipsum...</div>
<div class="info">Lorem...</div>
</div>
And this CSS:
div.layer{
height: auto;
background-color: #FFF;
}
div.post{
width: 70%;
float: left;
background-color: #FFF;
}
div.info{
width: 20%;
float: right;
background-color: #FFF;
}
Now what I wanted was that, if div.post was larger than div.info, div.layer would resize along.
But it doesn't do so, meaning that there's a hole below div.info. Any suggestion to fix that?
Thanks in advance.
<div class="layer">
<div class="post">Lorem ipsum...</div>
<div class="info">Lorem...</div>
</div>
And this CSS:
div.layer{
height: auto;
background-color: #FFF;
}
div.post{
width: 70%;
float: left;
background-color: #FFF;
}
div.info{
width: 20%;
float: right;
background-color: #FFF;
}
Now what I wanted was that, if div.post was larger than div.info, div.layer would resize along.
But it doesn't do so, meaning that there's a hole below div.info. Any suggestion to fix that?
Thanks in advance.