Let say, I have this example.
.. where left and right is float left and right respectively.
What is the best method (must be validated) to make the container's height 100% or fluid without declaring a fixed height value?
I seems to have some problem with this whenever there is floats inside the div.
Before, I used to use this:
But sometimes, the horizontal and vertical scrollbars will appear inside the div, especially in IE7.
Code:
<div id="container">
<div class="contentA left">Lorem lipsum</div>
<div class="contentB right">Lorem lipsum</div>
</div>
.. where left and right is float left and right respectively.
What is the best method (must be validated) to make the container's height 100% or fluid without declaring a fixed height value?
I seems to have some problem with this whenever there is floats inside the div.
Before, I used to use this:
Code:
#container {
overflow: auto;
height: 100%;
min-height: 100%;
}
But sometimes, the horizontal and vertical scrollbars will appear inside the div, especially in IE7.






