I have a very simple html code:
<body>
<div id="container">
<div id="left">
some text here
</div>
<div id="right">
and some text here
</div>
</div>
</body>
and styles:
div#left {
float: left;
background: #e2e2e2;
}
div#right {
float: right;
background: #1469ab;
}
I want to have the height of div #container equal to heights of it's content, but now it actually 0. How to implement this behavior?