Jump to content

hover over text issue.


Orionsbelter

Recommended Posts

.silvertext{
font-family:Verdana, Geneva, sans-serif;
color:#999;
font-size:10px;
font-weight:bold;
text-transform: capitalize;
}
.silvertext a:hover{
font-family:Verdana, Geneva, sans-serif;
color:white;
font-size:10px;
font-weight:bold;
text-transform: capitalize;
}
.silvertext a:visited{
font-family:Verdana, Geneva, sans-serif;
color:#999;
font-size:10px;
font-weight:bold;
text-transform: capitalize;
}

 

The issue is that when i hover over it should turn white however it doesn't it stays #666 if i take away the a:visited it does turn white when i hover over the text but has the default of purple which i do not want.

 

Help me please.

Link to comment
https://forums.phpfreaks.com/topic/183244-hover-over-text-issue/
Share on other sites

Change your CSS to this:

 

.silvertext{
font-family:Verdana, Geneva, sans-serif;
color:#999;
font-size:10px;
font-weight:bold;
text-transform: capitalize;
}
.silvertext a:visited{
font-family:Verdana, Geneva, sans-serif;
color:#999;
font-size:10px;
font-weight:bold;
text-transform: capitalize;
}
.silvertext a:hover{
font-family:Verdana, Geneva, sans-serif;
color:white;
font-size:10px;
font-weight:bold;
text-transform: capitalize;
}

 

The pseudo-selectors  have to be in this order - :link, :visited , :hover, :active

An easy way to remember this is:

Link

o

Visited

e

Hover

Active

t

e

nope i put it up as http://gaming-network.ath.cx/test.php i think.

 

EDIT: yep that is the link, just cleared the cache and produced same effects for both methods whereas yours did not work in firefox 3.5.5 mine did i thought that you have to put tags befre classes or ids otherwise it doesnt work anyway?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.