I am trying to get my page to be 3 columns, with a liquid center one.
The CSS concerned is:
Expand|Select|Wrap|Line Numbers
- div.container {
- width: 100%;
- margin: 0 auto;
- border: 0px;
- }
- div.center_content {
- background-color:#0033FF;
- position: relative;
- left: 200px;
- float: left;
- }
- div.left_content {
- background-color:#770000;
- width: 200px;
- left: 0;
- position: relative;
- float: left;
- }
- div.right_content {
- background-color:#7733FF;
- width: 200px;
- right: 0;
- position: relative;
- float: right;
[HTML]<div class="container">
<div class="left_content">
<p>Left Content</p>
<some code />
</div>
<div class="center_content">
<p>Center Content</p>
<some code />
</div>
<div class="right_content">
<p>Right Content</p>
<some code />
</div>
</div>[/HTML]
Basically I want the middle column to fill all the space between the left and right (fixed-width) columns, but I can't seem to get the CSS right for center_content.