I've tried a few different rules but I can get my top menu to center. When I change the position to absolute or relative it does go to the center but then the height goes to 100% for some reason. I don't have a set height because I want the five to be the size of the children.
Here's the HTML:
<div id="topWrapper"> <a href="index.html"> <header id="top_header"> <h1>MacroPlay Games</h1> </header> </a> <nav id="topnav"> <ul> <a href="index.html"><li>Home</li></a> <a href="about.html"><li>About</li></a> <a href="video.html"><li>Trailers</li></a> </ul> </nav> </div> CSS:
#topWrapper { border:1px solid #00ffff; background-color:#0d0d0d; text-align:center; position:fixed; z-index:9999; width: 850px; margin: 0px auto; float:clear; } Fiddle: http://jsfiddle.net/kjAAy/
min-width?