|
-
Jun 14th, 2004, 09:06 AM
#1
Thread Starter
Frenzied Member
make table cell a link [resolved]
IE lets me make a <td> element into a link. I have text inside the cell and I put the anchor tag outside of the <td></td> and it turns the entire cell into a link. Netscape doesn't like this, however, so I have to put the link on the word only, and now the user has to put the cursor over the word instead of just the cell.
Is there any way around this in Netscape? I want to have the entire cell as a link!
Last edited by ober0330; Jun 14th, 2004 at 01:21 PM.
-
Jun 14th, 2004, 10:16 AM
#2
Frenzied Member
You need to push the red button!!
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Jun 14th, 2004, 11:24 AM
#3
Code:
<td style="cursor:hand;" onClick="document.location.href='whatever.php';">dfkjdf</td>
-
Jun 14th, 2004, 12:25 PM
#4
Thread Starter
Frenzied Member
Originally posted by vbNeo
You need to push the red button!!
***?
Thanks mendhak.
-
Jun 15th, 2004, 04:45 AM
#5
cursor: hand; is invalid and works only in IE. cursor: pointer; is proper CSS, but it doesn't work in IE prior to 6.
The invalid but universal solution is
cursor: pointer; cursor: hand;
As for the other issue, <a> can only have inline content and <td> is a block. It's not allowed to nest td inside a. xlink would offer the solution, but you need proper XHTML for that which IE doesn't support - not that it supports xlink either.
However, you can put an <a> around the whole content of the cell (provided it's only inline content) and give it a display of block. That should make if fill the whole cell.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jun 15th, 2004, 07:26 AM
#6
Thread Starter
Frenzied Member
Well, I've already switched to the javascript solution... and I did use both pointer types. Thanks anyways. Oh, and I also knew that Netscape didn't like nesting <td> inside of <a> because it is not proper CSS, but IE does it.... grrr... why can't everything work/fail the same!
-
Jun 15th, 2004, 07:56 AM
#7
Because some heed the specifications and some don't. Guess who I blame
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jun 15th, 2004, 08:44 AM
#8
Thread Starter
Frenzied Member
I'm with ya... is there any way to file suit against M$ for this? It's causing me temporary insanity and failure to meet personal deadlines therefore resulting in lackluster performance in the workplace. I think it's valid.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|