Solved

Centering Menu Bar

Posted on 2014-11-30
3
72 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Html CheckBox obtain Its Value 5 28
AJAX Wordpress Not Reading Variable 2 28
really easy css change help please 4 19
GET error with Font Awesome 3 16
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.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

839 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