faqts : Computers : Internet : Web : HTML

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

16 of 47 people (34%) answered Yes
Recently 1 of 10 people (10%) answered Yes

Entry

How can I change a link's color and background color of a table cell at the same time?

Aug 1st, 2001 15:50
Ben Gordon, me mez,


In IE this is a fairly easy task just add the following code to the
<head> section of your page
<style>
<!-
a:hover {color: red; background-color: yellow; layer-background-color:
yellow;}
-->
</style>

Try this code out
<html>
<head>
	<title>Test of a:hover</title>
	<style>
	<!--
	a:hover {color: red; background-color: yellow; layer-background-color:
yellow;}
	-->
	</style>
</head>

<body>
<table>
<tr>
<td><a href="null">somewhere.com</a></td></tr></table>
</body>
</html>


This should also work in NS 6 in NS 4.xx however this task requires the
use of javascript and I unfortunately am not that knowledgeable in that
area