I want to align a list of links to be centered within a div.
I tried margin: 0 auto, but no luck.
Note: the navigation-wrapper div needs to stay in place, this is just the snippet of html that is of concern.
Check http://jsfiddle.net/bkmorse/aaCY7/ to see the links that I need to align properly in the div.
html
<div id="navigation-wrapper">
<ul id="top-navigation">
<li><a href="">Home</a></li>
<li><a href="">Volunteer</a></li>
<li><a href="">Support</a></li>
<li><a href="">Educate</a></li>
<li><a href="">Contact</a></li>
<li><a href="">Gift Shop</a></li>
<li><a href="">Directions</a></li>
</ul>
</div>
css
#navigation-wrapper {
width:465px;
border:1px solid red;
}
#top-navigation {
margin: 0 auto;
border:1px solid blue;
padding:5px 0;
}
#top-navigation li {
display:inline;
list-style-type:none;
margin:2;
}