Click to See Complete Forum and Search --> : How to hyperlink a complete table data cell/row?


kemiko
01-14-2003, 09:43 PM
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.

xXxZom_biExXx
01-14-2003, 10:24 PM
i saw this in another forum, maybe it will help you out
http://www.ozoneasylum.com/Forum2/HTML/001764.html

hope none minds linking to another forum but i didnt want to repost what they already posted and take credit for it

xXxZom_biExXx
01-14-2003, 10:31 PM
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

Stefan
01-15-2003, 12:47 PM
Originally posted by kemiko
I want the complete table cell/row to be a hyperlink...not just the words in the cells/rows.

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>.


The code is

<td><a style="display:block;">All the content in your tablecell</a></td>

Additionally it will also work when JS is turned off or not available in the visitiors browser.