CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.
Maybe I’m going about this all wrong, so correct me at any time.
I’m trying to center a DIV inside of another DIV tag and having issues.
Here’s what I tried…
So, right now my menu buttons are left-aligned but I’d like them to be centered on the page.
Here is the site I’m working on http://www.viziworx.com/test.html
Any and all feedback pertaining to achieving my goal will be much appreciated.
Thanks in advance!
Hampton Roads Most Wanted
This reply has been reported for inappropriate content.
Looks like you mis-spelled an ID name. In the markup you use "menu-item", but in the CSS you use "menu-items".
Easy enough. It’s always the simplest mistake that gets me every time!
I think I need a break from staring at the monitor.
Really the two ‘divs’ are redundant. You can achieve the same layout with just the UL tag.
You must be logged in to reply to this topic.
Search for Stuff
Browse the Archives
Get the Newsletter
... or get the RSS feed