Solved

Centering Menu Bar

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Column Spacing 3 37
Bootstrap Datable Spinner 3 31
Link SQL table to Webpage 9 38
Bootstrap 3 application structure 7 16
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now