Can you link a table? (HTML question)

Entity

Lifer
Oct 11, 1999
10,090
0
0
I'm really a perfectionist when it comes to my site. When people click the menu bar, I'd like to make it so it works in all browsers, but so that when people click anywhere within the table column (<TD>), it sends them to the page, rather than when they just click on the text. However, I had problems before when trying this...don't know why, but it worked in IE 5 and not in Opera.

Can you place <a> </a> around a <td> </td>?

Example:

<a style=&quot;color:#000000;text-decoration:none;&quot; href=&quot;http://www.hikefordiabetes.org/sponsors.htm&quot; target=&quot;_top&quot;>

<td width=14% onMouseOver=&quot;this.style.backgroundColor='#CBDCEC';this.style.cursor='hand';&quot; onMouseOut=&quot;this.style.backgroundColor='#FFFFFF';&quot;>

<div align=&quot;center&quot;><font color=&quot;#00008b&quot;>Sponsors</font></div>

</td>

</a>

Is that legit in any browser?

thanks,
Rob
 

perry

Diamond Member
Apr 7, 2000
4,018
1
0
Hmm.. never seen that before. Probably didn't work in Opera because it isn't a valid HTML tag (that I know of at least). IE is a bit more lenient <sp> that way, it'll recognize stuff that isn't perfect HTML.

Netscape would probably be the same as Opera. Make a table and leave off the /table tag and see what Netscape does. No table. IE will display it.

Only option I see is using images with the text and making a javascript rollover function.
 

Entity

Lifer
Oct 11, 1999
10,090
0
0
Maybe I'll just leave it as is. :p It's so hard to make it exactly how I want to. :)

Rob
 

Entity

Lifer
Oct 11, 1999
10,090
0
0
I've tried to troubleshoot it in Netscape, but all I can figure out is that it doesn't work, and not how to make it work (without going to an onclick command in JavaScript). It isn't a big issue, but still bugs me. :p

Rob
 

DAM

Diamond Member
Jan 10, 2000
6,102
1
76
it wont work, i had the same issue, hotmail.com uses a jscript to get passed that problem, but i dont know the code if you run into it, or solve your problem, let me know, i would like to find out.






dam()