Solved

How do I center Navigation Bar tabs

Posted on 2011-03-07
5
202 Views
Last Modified: 2012-06-27
On the following test site, I want the four navigation bar choices Home, About, Services, Contact to justify center in the navigation bar, instead of their current float left. Should be a simple fix, I just need an expert...thanks!

Here's the site:

http:www.JustTheDriver.com
0
Comment
Question by:TonyT7220
[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
5 Comments
 
LVL 16

Accepted Solution

by:
JF0 earned 500 total points
ID: 35059360
Change #navigatin ul to this:

#navigation ul {
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
    width: 210px;
}
0
 
LVL 22

Expert Comment

by:plusone3055
ID: 35059376
float:center ;
0
 
LVL 16

Expert Comment

by:JF0
ID: 35059409
the float property does not even have a value of 'center' available. The only values for float are left, right, inherit, and none.
0
 
LVL 2

Expert Comment

by:tahula2
ID: 35059544
Change "#navigation li" in the style sheet would make it look a lot neater.

I don't think it's what you asked for though.

#navigation li {
      float: left;
        width: 25%;
      text-align: center;
}
0
 

Author Closing Comment

by:TonyT7220
ID: 35059615
Thanks, that did the trick!
0

Featured Post

Technology Partners: 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

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

749 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