Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Change my css to for tab navigation

Posted on 2006-11-28
1
Medium Priority
?
175 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 1050 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to count occurrences of each item in an array.

721 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