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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hover function that just works for text

Status
Not open for further replies.

leonk09

Technical User
Nov 9, 2005
20
GB
Okay I have a link that looks like this:

Code:
<style type="text/css">
a.link1:link, a.link1:visited  {
	text-decoration: none;
	color: #000000;
	font-family: Verdana, Tahoma;
	font-size: 11px;
	}
a.link1:hover {
background-color: #000000;
	text-decoration: none;
	color: #99CCFF;
	font-size: 11px;
}
</style>
<A href="[URL unfurl="true"]http://www.mypage"[/URL] class="link1"><img src="pic.gif"><br>Description of link</a>

The gif image is mostly transparent, and I don't want the background color to change on the image, just the text.

Is there a way to do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top