Can you hyperlink a <td> cell?

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Can you hyperlink a <td> cell?

Post 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...??
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Can you hyperlink a <td> cell?

Post by Christopher »

You could attach a click event to the <td> element. Each would need a unique ID to know which was clicked.
(#10850)
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Can you hyperlink a <td> cell?

Post by simonmlewis »

Mmmm. In the end, I entered a mask image, that resized too, and hyperlinked that.
Thanks.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply