Reputation: 329
I disabled my address link with the following:
<a href="#" onclick="return false;" rel="nofollow">Overview</a>
This came from some suggestions in my last post.
However --- When I move the cursor over the link a hand appears to show it's a link even though it does nothing. Is there a way to stop the cursor changing to a hand?
Thanks,
Upvotes: 3
Views: 2292
Reputation: 37741
If your link isn't pointing anywhere, you could just remove the href
from the tag, which will result in browsers rendering the link as just normal text. (no underline, no pointer cursor)
Upvotes: 3
Reputation: 28187
Change the cursor to cursor:default;
, e.g.
<a href="#">Link 1</a>
<a href="#" style="cursor:default;">Link 2</a>
Link 2 will use the default arrow cursor.
Upvotes: 2
Reputation: 7853
Yes, there is a styling rule to affect this. It is called the cursor property. Just apply a rule like this to your link styles:
cursor: default;
Upvotes: 2
Reputation: 11175
Through CSS, a { cursor: default; color: black; text-decoration:none; }
This will remove the blue text, underline and the hand pointer that is normally default for browsers. Also, why are you using a tags, haha?
Upvotes: 5