81

I would like to remove the hand cursor that appears when you hover over a hyperlink.

I have tried this css:

a.link {
    cursor: pointer;
}

And this:

a.link {
    cursor: pointer !important;
}

And still it changes to the hand when I hover over the link.

Does anyone have any ideas as to why this happens or a solution that would enable me to achieve this effect?

General Grievance
  • 4,555
  • 31
  • 31
  • 45
Craig van Tonder
  • 7,497
  • 18
  • 64
  • 109

5 Answers5

181

That's exactly what cursor: pointer; is supposed to do.

If you want the cursor to remain normal, you should be using cursor: default

bevacqua
  • 47,502
  • 56
  • 171
  • 285
  • Thank you, solved the problem for me. I guess it was down to my interperation of pointer. Do you have any idea what kind of browser support this has? I am trying to hide a link to my back end section, so i would want this to appear in this manner always... – Craig van Tonder Jan 21 '12 at 13:56
  • 5
    It has complete browser support: [you should google more](http://www.quirksmode.org/css/cursor.html) – bevacqua Jan 21 '12 at 15:11
17

Using inline styling use <a href="your link here" style="cursor:default">your content here</a>. See this example

Alternatively use css. See this example.

This solution is cross-browser compatible.

jacktheripper
  • 13,953
  • 12
  • 57
  • 93
5
<button>
  <a href="https://accounts.google.com/ServiceLogin?continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fpc%3Den-ha-apac-in-bk-refresh14&service=mail&dsh=-3966619600017513905"
     style="cursor:default">sign in</a>
</button>
Tunaki
  • 132,869
  • 46
  • 340
  • 423
jagadish
  • 51
  • 1
  • 1
5

Try this

To Remove Hand Cursor

a.link {
    cursor: default;
}
3
<style>
a{
cursor: default;
}
</style>

In the above code [cursor:default] is used. Default is the usual arrow cursor that appears.

And if you use [cursor: pointer] then you can access to the hand like cursor that appears when you hover over a link.

To know more about cursors and their appearance click the below link: https://www.w3schools.com/cssref/pr_class_cursor.asp

Code Carbonate
  • 640
  • 10
  • 18