View Single Post
  #6 (permalink)  
Old Mar 11th, 2008, 13:43
moojoo's Avatar
moojoo moojoo is offline
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,946
Blog Entries: 1
Thanks: 0
Thanked 29 Times in 29 Posts
Re: How to create a centered page with layers.

If all you are trying to do is center your layout then have everything inside it its pretty straight forward. (It would help if you had something online we could see).

#container {
width:770px
margin:0 auto;
}

#leftColumn {
width:200px;
float:left;
}

#rightColumn {
margin:0 0 0 205px;
}

<div id="container">
<div id="leftColumn">
<ul>
<li><a href="">Link Here</a></li>
<li><a href="">Link Here</a></li>
<li><a href="">Link Here</a></li>
<li><a href="">Link Here</a></li>
<li><a href="">Link Here</a></li>
</ul>
</div>
<!-- end #leftColumn -->
<div id="rightColumn">
<p>Sample text paragraph</p>
</div>
<!-- end #rightColumn -->
</div>
<!-- end #container -->
__________________
I hate IE 6. Just sayin....
http://www.mevans76.com
Reply With Quote