View Single Post
  #1 (permalink)  
Old March 9th, 2006, 01:33 PM
keithc keithc is offline
Authorized User
 
Join Date: Jan 2006
Location: , , .
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default Centering an UL element within DIV

I have an unordered list "UL" that contains several "Li" elements and I am having difficulties centering the UL withing the DIV it is contained within. It is aligning itself LEFT and I'd like to have it centered across the page.

<h1>UL table-style menu</h1>
<ul id="ul-table">
<li class="top"><a href="">first link</a></li>
<li class="top"><a href="">second link</a></li>
<li class="top"><a href="">third link</a></li>
<li class="top right"><a href="">fourth link</a></li>
<li><a href="">fifth link</a></li>
<li><a href="">sixth link</a></li>
<li><a href="">seventh link</a></li>
<li class="right"><a href="">eighth link</a></li>
</ul>
<div class="clear"></div>