Home › Forums › CSS › Centering a basic ul › Re: Centering a basic ul
May 29, 2013 at 4:08 pm
#136951
Kitty Giraudel
Participant
Well, given the size of your list, I don’t think vertical centering should matter. Now, regarding horizontal centering, you won’t do much without a given width; could it be 50%, 500px or whatever pleases you.
Try this on the #nav element:
#nav {
width: 100%;
max-width: 500px;
margin: 0 auto;
}
And remove both z-index and height.