How to hyperlink a complete table data cell/row?

liunx

Guest
I know I have accomplished this in the past. I can not remember how I did this or find my old code. I want the complete table cell/row to be a hyperlink...not just the words in the cells/rows.<!--content-->i saw this in another forum, maybe it will help you out <br />
<!-- m --><a class="postlink" href="http://www.ozoneasylum.com/Forum2/HTML/001764.html">http://www.ozoneasylum.com/Forum2/HTML/001764.html</a><!-- m --><br />
<br />
hope none minds linking to another forum but i didnt want to repost what they already posted and take credit for it<!--content-->nevermind .......... looks like Dave already has u well taken care of , sorry he musta posted while i was, cause that wasnt there when i went to look for an answer<!--content-->Originally posted by kemiko <br />
I want the complete table cell/row to be a hyperlink...not just the words in the cells/rows. <br />
<br />
The easy way that works cross browser (in current browsers) is to simply make the <a> block-level with CSS. It only works for <td> though, not for a compleate <tr>.<br />
<br />
<br />
The code is<br />
<br />
<td><a style="display:block;">All the content in your tablecell</a></td><br />
<br />
Additionally it will also work when JS is turned off or not available in the visitiors browser.<!--content-->
 
Back
Top