Starr Duskk
asked on
Disappear Hyperlink Text on Hover
I have a hyperlink, I want to have an arrow image next to text normally, but on hover, I want the text to go away and an image to display instead.
here is my code:
#MenuHome a
{
display: block;
font-family: Tahoma, Arial, Verdana;
font-size: 12px;
color: white;
width: 65px;
height: 23px;
text-decoration: none;
background: none;
text-align: center;
font-weight: bold;
vertical-align: middle;
}
#MenuHome a:hover
{
background: url( "images/home.gif" ) no-repeat center center;
}
Right now, on hover, the image displays behind the text, but I want the text go disappear.
thanks.
here is my code:
#MenuHome a
{
display: block;
font-family: Tahoma, Arial, Verdana;
font-size: 12px;
color: white;
width: 65px;
height: 23px;
text-decoration: none;
background: none;
text-align: center;
font-weight: bold;
vertical-align: middle;
}
#MenuHome a:hover
{
background: url( "images/home.gif" ) no-repeat center center;
}
Right now, on hover, the image displays behind the text, but I want the text go disappear.
thanks.
ASKER
That makes my home.gif image disappear too.
Please look at MY example....
#MenuHome a:hover
{
background: url( "images/home.gif" ) no-repeat center center;
}
Please look at MY example....
#MenuHome a:hover
{
background: url( "images/home.gif" ) no-repeat center center;
}
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Warpseh's solution works perfectly. Yo's wasn't quite there and still didn't work. But I gave you points for getting close.
Try this code .....
Have a nice day,
Andrew
Open in new window