html code to make whole of table cell...

User 27364 Photo


Registered User
9 posts

I have a table set up as a calendar, I want to select a date and have a link active from the whole cell not just the date number.
Can this be none, if so how ?
User 603315 Photo


Registered User
938 posts

Do you mean can this be done? not as none the number, or zero? Yeah it can be done, but can you give us a link it so much easier to see something.
User 271657 Photo


Ambassador
3,816 posts

Could you fill the cell with a transparent* 'button' placed behind the date number?
*or the same color as the background of the cell.
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 38401 Photo


Senior Advisor
10,951 posts

If you're working inside of a table and doing this, just add another line and include your link in there. That's really all there is to creating a link in a table as it's just link code same as any other link code. Other than that, need a link to the page as G'Kar already asked for so we can get a better idea of what you might mean if that's not what you are talking about.
User 187934 Photo


Senior Advisor
20,245 posts

Try this type of setup.:)
<table width="300" border="1" class="table">
<tr>
<td><a href="http://coffeecup.com">&nbsp;</a></td>
</tr>
</table>

.table a
{
display:block;
text-decoration:none;
}
</style>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 27364 Photo


Registered User
9 posts

I want to how to link to an entire cell in a table.
I have attached the file what I want to do is click on one of the high lighted date cell and this will take me to another page.
this works as it is, but only if you click on a date number, what I am hoping for is to click anywhere in the date cell to take me to another page.
Can this be done if so how?
Attachments:
User 2088758 Photo


Senior Advisor
3,106 posts

Have you tried using an image that would fill the entire cell and make it a link.
Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
User 603315 Photo


Registered User
938 posts

You would be able to do that with an image like Steve said. It's why would you want to do that though. You've got some of the dates marked, if you did do that with an image then you wouldn't be able to do, or it would be hard to do one date on it's own, if I'm making sense.
User 2088758 Photo


Senior Advisor
3,106 posts

Yes you are correct G'kar it is kind of a work around. I just don't think its possible any other way to make the entire cell clickable. Unless there is some script out there that will do it. But as far as I know and I have tried to "Google" it too and I could not find any table properties that would allow this.
Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
User 603315 Photo


Registered User
938 posts

Steve wrote:
Yes you are correct G'kar it is kind of a work around. I just don't think its possible any other way to make the entire cell clickable. Unless there is some script out there that will do it. But as far as I know and I have tried to "Google" it too and I could not find any table properties that would allow this.


No doesn't seem so not with tables. Possibly with using Form elements you can do loads with forms and Javascript, externally from using what their original purpose was. However that is a lot of work when you've already done it with tables :P

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.