Hello,
I need some help with understanding floats. I have a div named holder, which as the name suggest, is a holder. Inside this holder I have 2 containers. One is the left container and the other is the right container.
HTML
<div id="holder">
<div id="contentleft">
<p>This is a paragraph. This is a paragraph. This is a paragraph.</p>
</div><!--end of contenttop-->
<div id="contentright">
Picture go here! Picture go here!Picture go here!Picture go here!
</div><!--end of contentright-->
</div><!--end of holder-->
CSS
#holder{
width:65%;
margin: 10px auto;
background-color: green;
position: relative;
padding: 10px;
}
#contentleft{
background-color: red;
width: 50%;
float: left;
}
#contentright{
background-color: blue;
margin-left: 50%;
}
Here is the problem: the holder, doesn't increase in size when the size of the contentleft increase (It does when contentright increase). The contentleft essentially overflows. How do I fix it? As always any help is greatly appreciated!
Thanks,
Drjay