Solved

How do I center Navigation Bar tabs

Posted on 2011-03-07
5
201 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Find out what you should include to make the best professional email signature for your organization.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

778 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