Pure CSS linked table rows

Associate
Joined
19 Jun 2006
Posts
162
Location
Swansea, Wales
Does anyone know how to make a table row <td></td> into a link rather than just the text inside the row in a purely CSS way?

Seen plenty of JS ways but I don't want to go that route.
 
why are you so against using javascript in this case? as long as you are providing a fallback should javascript be disabled (like you are with the text link) then theres nothing wrong with javascript :)

edit: have you tried changing the link to a block element ( display: block; )
 
Last edited:
I use something like this for a results table i made once.

I don't think its possible using CSS?

unless you want them all to go to the same place?? I really don't understand why your not using JS here.

Code:
<tr style="cursor: pointer" onclick="document.location=('http://link');">
 
Last edited:
Back
Top Bottom