Page 1 of 1

Can you hyperlink a <td> cell?

Posted: Wed Jan 15, 2014 4:22 am
by simonmlewis
We are building a page where the <td> cells have background image, and when you hover over it, the cell expands.

Because it has a background image, I cannot link to it (can I?). So I was thinking of using a mask image in there, but that wouldn't fill it when it expands. So can you do a hyperlink to the <td> so no matter what size it is, it's linked...??

Re: Can you hyperlink a <td> cell?

Posted: Wed Jan 15, 2014 9:01 am
by Christopher
You could attach a click event to the <td> element. Each would need a unique ID to know which was clicked.

Re: Can you hyperlink a <td> cell?

Posted: Wed Jan 15, 2014 9:08 am
by simonmlewis
Mmmm. In the end, I entered a mask image, that resized too, and hyperlinked that.
Thanks.