Solved

Centering Menu Bar

Posted on 2014-11-30
3
78 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

635 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