HighDots Forums  

Making an Entire Table Cell a Hyperlink

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Making an Entire Table Cell a Hyperlink in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ArizonaJohn
 
Posts: n/a

Default Making an Entire Table Cell a Hyperlink - 04-02-2009 , 12:16 AM






Hello,

I would like to make an entire table cell-- not just the text within the
cell-- a hyperlink. How is this done?

If it makes any difference, I am trying to do this within PHP. I have
attached the code for the table call that I would like to turn into a hyperlink.

Thanks in advance,

John



print "<td>".'<a href="#" >'.$row['ballot']."</td>";


Reply With Quote
  #2  
Old   
TC2112
 
Posts: n/a

Default Re: Making an Entire Table Cell a Hyperlink - 04-02-2009 , 12:32 AM






Hello,

You could do something like this (adjust as needed):

<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>


Then just give the <td> that the link is in a class named "celllink"

Take care,
Tim


"ArizonaJohn" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hello,

I would like to make an entire table cell-- not just the text within the
cell-- a hyperlink. How is this done?

If it makes any difference, I am trying to do this within PHP. I have
attached the code for the table call that I would like to turn into a
hyperlink.

Thanks in advance,

John



print "<td>".'<a href="#" >'.$row['ballot']."</td>";




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.