Link to home
Start Free TrialLog in
Avatar of lfrohman
lfrohman

asked on

anchor <a> for entire <td> column

How can I get an anchor <a href="..."> inside a table cell <td> to
apply to the entire cell? The css width works for I.E., but not for
Netscape. In the code below, the red is an active link. In I.E.
it applies to the entire width of the cell. But in Netscape, it
applies only to the text "aaa".

<html>
<body>
<table>
<tr><td>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</td></tr>
<tr><td><a href="http://www.mypage.com" style="{width:100%; background-color:red}">aaa</a></td></tr>
</table>
</body>
</html>

ASKER CERTIFIED SOLUTION
Avatar of GrandSchtroumpf
GrandSchtroumpf

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This works well too, if they "miss" the link

<td onclick='location.href="http://www.mypage.com";'><a href="http://www.mypage.com">Blah</a></td>