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...??
Can you hyperlink a <td> cell?
Moderator: General Moderators
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
Can you hyperlink a <td> cell?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.
- 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?
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?
Mmmm. In the end, I entered a mask image, that resized too, and hyperlinked that.
Thanks.
Thanks.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.