Solved

Centering Menu Bar

Posted on 2014-11-30
3
74 Views
Last Modified: 2014-11-30
I am trying to center the menu with no luck.  It's staying to the left.  How can I center this?
http://www.davidschure.com/index.php
nav-styles.css
style.css
0
Comment
Question by:DS928
  • 2
3 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40472641
To center easily you need to give your menu a defined width then you can use margin:0 auto

e.g. in #cssmenu{...} add

    margin: 0 auto;
    width: 850px // replace your width:auto
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40472652
820px covers it.
0
 

Author Closing Comment

by:DS928
ID: 40473007
Perfect!  Thank you!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question