• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4236
  • Last Modified:

cursor:hand not working in IE9 but works in IE8

I have the below code to show a hand cursor. It works on IE8 and below but not on IE9:
<span style="cursor:hand">
0
sandya_116
Asked:
sandya_116
  • 2
1 Solution
 
Carlos VillegasFull Stack .NET DeveloperCommented:
Hi, try with pointer:
<span style="cursor:pointer;">

Open in new window

Or
<span style="cursor:pointer; cursor:hand;">

Open in new window


Reference:
http://www.quirksmode.org/css/cursor.html
0
 
radcaesarCommented:
It should be "cursor: pointer;" alone because hand is a proprietary value only implemented by old versions of IE, and is thus an invalid value.

If you actually care about IE 5.x, though, you switch the two properties around, i.e. (cursor: hand; cursor: pointer, hand comes first). Your CSS will still invalidate though, so I'd rather you not bother.
0
 
Carlos VillegasFull Stack .NET DeveloperCommented:
Hi @radcaesar
i.e. (cursor: hand; cursor: pointer, hand comes first).

Are you sure?
Reference:
http://www.quirksmode.org/css/cursor.html


Note on pointer and hand

In the past the hand value was Microsoft's way of saying pointer; and IE 5.0 and 5.5 only support hand. Because it's the cursor value that's used most often, most other browsers have also implemented hand.

Since IE 6 and 7 support pointer, there's no more reason to use hand, except when older IEs are part of your target audience. In that case, the only cross-browser syntax is:

element {
      cursor: pointer;
      cursor: hand;
}
Note that the two declarations must be in this order.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now