Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selectors (hover, etc) not working in style sheet

Status
Not open for further replies.

plantfinder

Technical User
Sep 27, 2002
64
0
0
US
Can anyone tell me if they see something wrong with these entries? The selectors for 12xlinktxt are not working. They appear to be set up correctly. Below that I have also included the styles for leftnav which are working fine as a reference. I can't seem to figure out where I did something different.The 12xlinktxt style by itself works fine but when viewed in a browser it just shows the default blue link
style with aline under after I link it to something.

}

.12xlinktxt {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bolder;
color: #996600;
text-decoration: none;
}

.12xlinktxt a:hover {
color: #003366;
text-decoration: none;
background-color: #CCCC99;
}

.12xlinktxt a:link {
color: #996600;
text-decoration: none;
}

.12xlinktxt a:visited {
color: #996600;
text-decoration: none;

}

Here's the one that works:

}

.lftnavlist2 a:link {
text-decoration: none;
color: #996600;
}

.lftnavlist2 a:visited {
text-decoration: none;
color: #996600;
}

.lftnavlist2 a:hover {
color: #003366;
background-color: #CCCC99;
line-height: normal;
 
The order in the stlysheet is important :

link
visited
hover
active


Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Some people remember the anchor order with the mnemonic, LoVe HAte.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
I tried re-arranging them and it still doesn't work
 
Essentially you can't start a class with a number. There are esoteric exceptions, but just change the .12xxx to .z2xxx and it works as expected).

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top