Click to See Complete Forum and Search --> : TD background rollover state


dropkick
03-24-2006, 05:19 AM
hello me again,

I know this is a really basic bit of code. I use to have it years ago but dont seem to be able to find it anymore.

Basically I need to have the background TD colour to rollover when the text link within that cell is moused over!!!

Cheers guys

Fang
03-24-2006, 05:40 AM
Assuming there's just a link in the cell:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>background</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<style type="text/css">
td a {background:gray;}
td a:hover {background:red;}
</style>

</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" summary="">
<tr><td><a href="#">xxxx</a></td></tr>
</table>
</body>
</html>

dropkick
03-24-2006, 05:43 AM
cheers mate. I'll give that a bash a bit later. nice one. ;)