I want to set div#divcontainerdata to fit the full width of the screen using CSS.
My simplified HTML is:
<div class="container">
<div class="leftDiv2" style="width:300px;float: left;"></div>
<div class="leftDiv1" style="width:300px;float: left;"></div>
<div class="divcontainerdata"></div>
</div>
I would like the final product to look like this:
| | |
| div:leftdiv1 | divcontainerdata |
| | |
| div:leftdiv1 | |
How can I achieve this?
Set
float: left; clear: leftto first two divs and then setmargin-left: 300pxfor the third div.Demo