How to make a complete <td> or say <tr> as a hyperlink

P

petereffect

i have foll. code

<tr>
<a href="a1.shtml">

<td width='100%'>
&nbsp;"+Testing+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</a>
</tr>

The problem here is the "hand" image which we see while hovering over a
link is not displyed.

Kindly help

Regards,
Peter
 
M

Matt Kruse

i have foll. code
<tr>
<a href="a1.shtml">

This is illegal html. No content can exist between a <tr> and <td> tag.

Instead, you can make the whole row clickable using

<tr style="cursor:pointer" onclick="location.href='a1.shtml'">

There is no way to make the whole row clickable without javascript.
 
E

Evertjan.

wrote on 21 aug 2006 in comp.lang.javascript:

Your question has nothing to do with javascript,
so is off topic in this NG.

Please follow up in a html group,
or if you want to address css, in such group.
<a href="a1.shtml">

Illegal said:
<td width='100%'>

css style is preferred.

&nbsp;"+Testing+

This can be done, but the " and the + will just show up as text.
Is that what you expected?
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

Why? What do you expect of these &nbsp; ?
</td>
</a>


Try:

<table>
<tr>
<td width='100%'>
<a href="a1.shtml">
&nbsp;"+Testing+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</a>
</td>
</tr>
</table>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top