Solved

How do I center Navigation Bar tabs

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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
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…

695 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