If you know the width of the ul
then you can simply set the margin of the ul
to 0 auto;
This will align the ul
in the middle of the containing div
Example:
HTML:
<div id="container">
<ul>
<li>Item1</li>
<li>Item2</li>
</ul>
<div>
CSS:
#container ul{
width:300px;
margin:0 auto;
}