First, you need a container, this should do it:
Code:
#container {
display:block;
width:965px; /* 800 + 160 + 5 (space in between)
margin:0 auto;
text-align:left;
}
And add text-align:center; to your BODY styles. (IE bug)
For the first DIV, use this:
Code:
display:block;
margin-right:160px; /* Sidebar Width */
For the sidebar... :
Code:
#sidebar {
float:right;
display:block;
width:160px;
margin-left:5px;
}
Then, use this as your HTML:
Code:
<div id="container">
<div id="sidebar">
Sidebar Content goes in here
</div>
<div id="content">
Main content goes here.
</div>
</div>
Or, you can use the DD Layouts if you want
For the same height, use the DD Equal Height Script.
Hope this helps,
X96
Bookmarks