If you want to make this navigational unordered list horizontal, you have basically two options: To center align an unordered list, you need to use the CSS text align property. Not the answer you're looking for? The current standard in coding menus is unordered lists. background-position: left top; The . The current standard in coding menus is unordered lists. Download the example here. If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail: W3Schools is optimized for learning and training. To align things in the Block Direction, you will use the properties which start with align-. Until then, Ill continue my crusade against navigation lists. By setting the display of list items to inline, we can easily achieve a horizontally placed group of list items.
: Center-align the
element, and change the display of
    to To be honest Im not exactly sure why, but applying .ul {margin: 0 auto;} just doesnt work here. Am I missing something? I used partial bits of your css trickery to get this to work! Its not as semantic as a