I have this markup, a label wrapped in an anchor tag, but the problem is the cursor when you hover this doesn't change to the hand cursor,
<a href="#17"> <label class="autor"> <span class="by"> by </span> Erwin Lutzer </label> </a>
what am i doing wrong here?
can anyone plz help, thanks!!
You can simply use the CSS cursor property with the value pointer to change the cursor into a hand pointer while hover over any element and not just hyperlink. In the following example when you place the cursor over the list item, it will change into a hand pointer instead of the default text selection cursor.
How to make the cursor to hand when a user hovers over a list item using CSS? Use CSS property to create cursor to hand when user hovers over the list of items. First create list of items using HTML <ul> and <li> tag and then use CSS property :hover to cursor:grab; to make cursor to hand hover the list of items.
Check that the battery of the mouse is charged. Make sure that the receiver (dongle) is firmly plugged in to the computer. If your mouse and receiver can operate on different radio channels, make sure that they are both set to the same channel.
The cursor property is used to specify the mouse cursor to be displayed when the mouse is pointed over an element. Using the 'pointer' value in this property will change the cursor to a 'pointer' indicating a link. This class can then be used on any link that does not have any href property to show the pointer.
The label is cancelling out the pointer, so make sure your CSS has cursor: pointer;
for both the a and the label:
a, a label { cursor: pointer; }
Or better yet, remove the label! It's not valid to have a label inside an anchor.
Not the answer for actual question, but solution to my own, similar problem:
hand cursor is not showing when hover link. The problem was in the lack of href attribute.
<a>Link</a> <!-- regular cursor -->
but
<a href="#">Link</a> <!-- cursor pointer -->
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With