BrainCoder
BrainCoder

Reputation: 5337

Cursor appearance to Hand

The anchor tag below works. However, my question is, 'how can the anchor tag force the cursor to change its appearance not to Hand (like most links do) when hovering over it?'

<a href="javascript:void(0);" onclick="doSomethingh('value');">
      <label class="someClass">Click Me</Label>
</a>

Edited

I want cursor to appear as Hand but it is showing pointer

Upvotes: 0

Views: 376

Answers (4)

NullPoiиteя
NullPoiиteя

Reputation: 57322

This can be done by CSS cursor property.The cursor property specifies the type of cursor to be displayed when pointing on an element.

.someClass {
    cursor: pointer;
}

now consider white box is someClass than on mouse over on the someClass cursor will look like below

enter image description here

jsFiddle


Good Read

MDN:cursor CSS property

Upvotes: 2

Sowmya
Sowmya

Reputation: 26969

Add cursor:pointer to label

label {cursor:pointer }​

DEMO

Upvotes: 2

MarcinJuraszek
MarcinJuraszek

Reputation: 125630

.someClass {
    cursor: pointer;
}

Upvotes: -1

MalphasWats
MalphasWats

Reputation: 3295

in your .someClass CSS rules, add:

cursor:pointer;

Upvotes: 2

Related Questions