SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: Table cell as part of a link
-
Dec 18, 2002, 21:28 #1
- Join Date
- Jun 2002
- Location
- Riding the electron wave
- Posts
- 372
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Table cell as part of a link
I have a table that can be viewed HERE (left side of page) that contains links to my catalog pages.
I want the mouse pointer to change into a hand (indicating that the mouse is hovering over a link) as soon as the pointer enters the table cell where my present text links are located. I tried wrapping the <A> tags around the <TD> tags, which contain the text part of the links, but it didn't look or work right. Also did funny things with my CSS when I did that. Mouse pointer just acted like it was text, even though the link still worked if you clicked on it.
Does anyone have any ideas?
Thanks.Ducharme's Axiom: "If you view your problem closely
enough, you will recognize yourself as part of the problem."
-
Dec 18, 2002, 22:17 #2
- Join Date
- Dec 2001
- Location
- Sioux City, Iowa
- Posts
- 691
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
<td style="cursor:hand" onclick="window.location.href='http://domain.com'">
<a href="http://domain.com">Link</a>
</td>
-
Dec 18, 2002, 23:53 #3
- Join Date
- Oct 2001
- Location
- Beyond yonder
- Posts
- 2,384
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You should change "hand" to "pointer" to be official (or if you want it to work in Mozilla or other browsers)--"hand" is proprietary to IE. Now, if you don't give a flip if IE6 and down (hopefully MS'll catch up to proper standards by 7) don't see the hand, you can save yourself some typing and be on the forefront of standards with this bit of CSS:
Code:[onclick] { cursor: pointer; }
~~IanLast edited by Ian Glass; Dec 18, 2002 at 23:56.
-
Dec 19, 2002, 08:38 #4
- Join Date
- Jun 2002
- Location
- Riding the electron wave
- Posts
- 372
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks guys...
Thank you very much for your help. I'm gonna giv those suggestions a whirl...
Thanks.Ducharme's Axiom: "If you view your problem closely
enough, you will recognize yourself as part of the problem."
Bookmarks