Hey guys,
I am trying to get my page to be 3 columns, with a liquid center one.
The CSS concerned is:
[CODE=CSS]div.container {
width: 100%;
margin: 0 auto;
border: 0px;
}
div.center_cont ent {
background-color:#0033FF;
position: relative;
left: 200px;
float: left;
}
div.left_conten t {
background-color:#770000;
width: 200px;
left: 0;
position: relative;
float: left;
}
div.right_conte nt {
background-color:#7733FF;
width: 200px;
right: 0;
position: relative;
float: right;[/CODE]
The html:
[HTML]<div class="containe r">
<div class="left_con tent">
<p>Left Content</p>
<some code />
</div>
<div class="center_c ontent">
<p>Center Content</p>
<some code />
</div>
<div class="right_co ntent">
<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.
I am trying to get my page to be 3 columns, with a liquid center one.
The CSS concerned is:
[CODE=CSS]div.container {
width: 100%;
margin: 0 auto;
border: 0px;
}
div.center_cont ent {
background-color:#0033FF;
position: relative;
left: 200px;
float: left;
}
div.left_conten t {
background-color:#770000;
width: 200px;
left: 0;
position: relative;
float: left;
}
div.right_conte nt {
background-color:#7733FF;
width: 200px;
right: 0;
position: relative;
float: right;[/CODE]
The html:
[HTML]<div class="containe r">
<div class="left_con tent">
<p>Left Content</p>
<some code />
</div>
<div class="center_c ontent">
<p>Center Content</p>
<some code />
</div>
<div class="right_co ntent">
<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.
Comment