Solved

Change my css to for tab navigation

Posted on 2006-11-28
1
174 Views
Last Modified: 2008-01-16
I want to change the navigation to have no underline. I also want tabs for top  links.  I also want when you hover  for the tabs to change color. Now Iwany to make the tabs taller to cover each link








#navbar {
margin-bottom: 0;
margin-left: 110px;
margin-right: 110px;
font-size: .65em;
text-align: center;
margin-top: 0;
padding-bottom: 15px;
font-weight: bold;
padding-top: 8px;
background-color: #265057;
color: #ffffff;
word-spacing: 8px;
border-bottom: 2px #dfa9d2 solid;
}

#navbar a:link, #navbar a:visited {
color: #ffffff;
word-spacing: none;
}

#navbar a.current {
color: #ff4700;
}

#navbar a:hover {
color: #ff4700;
text-decoration: underline;
}

#navigation{

margin-bottom: 0;
margin-left: 110px;
margin-right: 110px;
font-size: .69em;
text-align: center;
margin-top: 0;
padding-bottom: 8px;
font-weight: bold;
padding-top: 23px;
background-color: #265057;
color: #ffffff;
word-spacing: .8px;
}



#navigation a
{
color: #000;
background: silver url(tableftB.gif) no-repeat left top;
text-decoration: none;
padding-left: 10px
}


#navigation a span
{
background: url(tabrightB.gif) right top no-repeat;
padding-right: 10px
}

#navigation a, #navigation a span
{
display: block;
float: left
}

/* Hide from IE5-Mac \*/
#navigation a, #navigation a span
{
float: none
}
/* End hide */

#navigation a:hover
{
background:  url(tableftB.gif) left top no-repeat;
padding-left: 10px
}

#navigation a:hover span
{
background: url(tabrightB.gif) right top no-repeat;
padding-right: 10px
}

#navigation ul
{
list-style: none;
padding: 0;
margin: 0
}

#navigation li
{
float: left;
margin: 0;
}
0
Comment
Question by:jcw20
[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
1 Comment
 
LVL 7

Accepted Solution

by:
Animasu earned 350 total points
ID: 18044348
I want to change the navigation to have no underline.

text-decoration:none;

I also want when you hover  for the tabs to change color.

a{background: #111;}
a:hover{background: #000;}

if you want images you can use

background: #000 url("image.jpg");

Now Iwany to make the tabs taller to cover each link

height:10px;


hope this helps

- Animasu
0

Featured Post

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

615 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