[SOLVED] 3 column layout - middle column shifted down
Posted: Thu Apr 30, 2009 2:25 pm
I followed a solved post on how to convert the top menu with 2 columns to a 3 column layout. Most of it worked for me. The only problem I'm having is that the center content column is shifted down to the middle of the page while the left and right columns seem to be aligned to the top properly. The wrapper for the page is 930px.
Here's a link: http://www.bethel.nurelm.com/index.php? ... e-test3col
Here's the css:
and the corresponding template info:
Any ideas why the center column would be shifting down? It displays the same in both IE and FF.
Thanks for your help!
Here's a link: http://www.bethel.nurelm.com/index.php? ... e-test3col
Here's the css:
Code: Select all
div#content {
margin: 0;
background-color:#FFFFFF;
}
div#leftbar {
float: left;
margin-left: 0px;
margin-right: 0px;
width: 220px;
padding: 2px;
}
div#sidebar {
float: right;
margin-left: 3px;
margin-right: 3px;
margin-bottom: 5px;
margin-top: 5px;
width: 160px;
padding: 0px;
}
div#main {
float: left;
width: 550px;
margin-left: 0px;
margin-right: 0px;
padding: 0px;
background-color: #EFEFEF ;
}
Code: Select all
{* Start Content (Navigation and Content columns) *}
<div id="content">
{* start leftbar *}
<div id="leftbar">
{content block='leftbar'}
</div>
{* end leftbar *}
{* Start right Sidebar *}
<div id="sidebar">
{content block='Sidebar'}
</div>
{* End Sidebar *}
{* Start Content Area *}
<div id="main">
<h2>{title}</h2>
{content} <br />
</div>
{* End Content Area *}
</div>
{* End Content *}Thanks for your help!