I am utilizing CSS code to create column a and column b, using float in the code to dynamically expand column a as content is added to column b. However, this expansion is not occurring as expected. To see my code, please visit http://jsfiddle.net/hadinetcat/E8jd3/
Here is my code:
CSS
.container {
border: 1px solid #000000;
overflow: hidden;
width: 100%;
}
.left {
width: 45%;
float: left;
background:none repeat scroll 0 0 lightblue;
}
.right {
width: 45%;
float: right;
}
HTML
<div class = "container">
<div class="left">
column a
column a<br />
column a<br />
column a<br />
column a<br />
column a<br />
column a<br />
</div>
<div class="right">
column b<br />
dynamic row<br />
dynamic row<br />
dynamic row<br />
dynamic row<br />
dynamic row<br />
dynamic row<br />
dynamic row<br />
dynamic row<br />
dynamic row<br />
dynamic row<br />
dynamic row<br />
dynamic row<br />
dynamic row<br />
dynamic row<br />
</div>
</div>
<div style="clear: both;"></div>