Solved

Change my css to for tab navigation

Posted on 2006-11-28
1
168 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
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now