Hyperlink cell in html table?

  • Thread starter Thread starter chalkjhawk79
  • Start date Start date
C

chalkjhawk79

Guest
I am trying to hyperlink the entire cell in a html table (not just the text inside of it). Is there a trick to doing that? I'm not finding much luck searching the web for an answer. Thanks!!
 
As posted above, I don't believe it can be done without JavaScript. Yeah, you could do <td onclick="window.location='[link]'">, that would probably be easiest. Then you can do <td style="cursor:pointer">
 
Perhaps something like:

<style type="text/css">
<!--
td.celllink a {
display: block;
text-decoration: none;
color: #000;
padding: 20px;
border: 1px solid #000;
}
td.celllink a:hover {
background-color: #0066FF;
}
-->
</style>

Adjust this to suit your needs. =)

> Note, I'm pretty sure that you can accomplish this without using JavaScript...
 
Perhaps something like:

<style type="text/css">
<!--
td.celllink a {
display: block;
text-decoration: none;
color: #000;
padding: 20px;
border: 1px solid #000;
}
td.celllink a:hover {
background-color: #0066FF;
}
-->
</style>

Adjust this to suit your needs. =)

> Note, I'm pretty sure that you can accomplish this without using JavaScript...
 
Back
Top