<div>
<div style="float: left; width: 200px; background: red;">
left
</div>
<div style="background:green; overflow:hidden;">
i am right; i am right; i am right;
<br />
i am right; i am right; i am right;
<br />
i am right; i am right; i am right;
<br />
</div>
</div>
<div>
<div style="float: left; width: 200px; background: red;">
left
</div>
<div style="background:green; margin-left: 200px;">
i am right; i am right; i am right;
<br />
i am right; i am right; i am right;
<br />
i am right; i am right; i am right;
<br />
</div>
</div>
<div>
<div style="position: absolute; width: 200px; background: red;">
left
</div>
<div style="background:green; margin-left: 200px;">
i am right; i am right; i am right;
<br />
i am right; i am right; i am right;
<br />
i am right; i am right; i am right;
<br />
</div>
</div>
<div style="position: relative;">
<div style="position: absolute; left: 0; width: 200px;background: red;">
left
</div>
<div style="position: absolute; left: 200px; right: 0;background: blue;">
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
</div>
</div>
.clearfix {
content: "";
display: block;
clear: both;
}
<div class="clearfix">
<div style="float: left; width: 100%;">
<div style="margin-right: 200px;background: red;">
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
</div>
</div>
<div style="float: left;background: blue; width: 200px; margin-left: -200px;">
I’m the Sidebar!
</div>
</div>
<div class="clearfix">
<div style="float: left;background: blue; width: 200px; margin-right: -100%;">
I’m the Sidebar!
</div>
<div style="float: left; width: 100%;">
<div style="margin-left: 200px;background: red;">
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
</div>
</div>
</div>
<div style="display: flex;">
<div style="width: 100%;background: red;">
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
</div>
<div style="background: blue; flex: 0 0 200px;">
I’m the Sidebar!
</div>
</div>
<table>
<tbody>
<tr>
<td width="200px" style="background: red;">i am the sidebar</td>
<td style="background: blue;">
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
</td>
</tr>
</tbody>
</table>
<div>
<div style="display: table-cell;width: 200px;background: red;">
left
</div>
<div style="display: table-cell;background: blue;">
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
Main content in here;
</div>
</div>