CSS layout, fixed on the right, adaptive width on the left
<div
style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">
<div
style="width:200px; float:right; background:#090"> This is the content on the right </div>
<div
style=" margin-right:210px; background:#F33"> This is the content on the left, adaptive width </div>
</div>
CSS layout, fixed on the left, adaptive width on the right
<div
style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">
<div
style="width:150px; float:left; background:#6F0"> This is the fixed content width on the left </div>
<div
style=" margin-left:160px; background:#FC0"> Intermediate content, adaptive width </div>
</div>
CSS three-column layout, fixed left and right width, and adaptive middle width
<div
style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">
<div
style="width:200px; float:right; background:#393"> This is the fixed width of the content on the right </div>
<div
style="width:150px; float:left; background:#F60 "> This is the fixed content width on the left </div>
<div
style=" margin-left:160px;margin-right:210px; background:#6C3;"> Intermediate content, adaptive width </div>
</div> |
Overflow: auto; _ display: inline-block; clears floating, _ display: inline-block; For IE6.
From: http://www.cnblogs.com/frankey/archive/2011/05/10/2042102.html