andyisan
07-19-2010, 09:40 PM
I have this code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head><title>Test</title>
<style type="text/css">
td {
width: 100px;
vertical-align: top;
border: 1px solid black;
}
td a {
display: block;
height: 100%;
}
td a:hover {
background-color: green;
}
</style>
</head>
<body>
<table>
<tr>
<td><a href="d">One year ago, in July 2009, Tumblr was going strong. They had 255 million pageviews that month. By November of last year, that was up to 420 million pageviews. But some new stats which Tumblr is releasing today show an explosion in growth since then. Tumblr is now at 1.5 billion pageviews a month — their Quantcast data confirms this.</a></td>
<td><a href="c">For the first time, Tumblr is now a top 50 site in the U.S. in terms of traffic as gauged by Quantcast.</a></td>
<td><a href="b">now posting some 4.5 million posts a day</a></td>
</tr>
</table>
</body>
</html>
When I hover over the middle TD, it looks like this:
http://img839.imageshack.us/img839/4893/45345.jpg (http://img839.imageshack.us/i/45345.jpg/)
How can I extend the <a> so that the green background goes all the way to the bottom of the TD and fills up the whole TD?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head><title>Test</title>
<style type="text/css">
td {
width: 100px;
vertical-align: top;
border: 1px solid black;
}
td a {
display: block;
height: 100%;
}
td a:hover {
background-color: green;
}
</style>
</head>
<body>
<table>
<tr>
<td><a href="d">One year ago, in July 2009, Tumblr was going strong. They had 255 million pageviews that month. By November of last year, that was up to 420 million pageviews. But some new stats which Tumblr is releasing today show an explosion in growth since then. Tumblr is now at 1.5 billion pageviews a month — their Quantcast data confirms this.</a></td>
<td><a href="c">For the first time, Tumblr is now a top 50 site in the U.S. in terms of traffic as gauged by Quantcast.</a></td>
<td><a href="b">now posting some 4.5 million posts a day</a></td>
</tr>
</table>
</body>
</html>
When I hover over the middle TD, it looks like this:
http://img839.imageshack.us/img839/4893/45345.jpg (http://img839.imageshack.us/i/45345.jpg/)
How can I extend the <a> so that the green background goes all the way to the bottom of the TD and fills up the whole TD?