When viewing my site, the cursor only changes to the gloved hand for <a>
tags, not <button>
tags. Is there a reason for this?
Here is my code (the button tags have an id of #more in css3).
#more { background:none; border:none; color:#FFF; font-family:Verdana, Geneva, sans-serif; }
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.
The default cursor for a hyperlink is "pointer". To change it, you need to specify the cursor type for your <a> element with the CSS :hover selector.
Link Pointer The link pointer looks like a hand with a pointing finger.
see: https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
so you need to add: cursor:pointer;
In your case use:
#more { background:none; border:none; color:#FFF; font-family:Verdana, Geneva, sans-serif; cursor:pointer; }
This will apply the curser to the element with the ID "more" (can be only used once). So in your HTML use
<input type="button" id="more" />
If you want to apply this to more than one button then you have more than one possibility:
using CLASS
.more { background:none; border:none; color:#FFF; font-family:Verdana, Geneva, sans-serif; cursor:pointer; }
and in your HTML use
<input type="button" class="more" value="first" /> <input type="button" class="more" value="second" />
or apply to a html context:
input[type=button] { background:none; border:none; color:#FFF; font-family:Verdana, Geneva, sans-serif; cursor:pointer; }
and in your HTML use
<input type="button" value="first" /> <input type="button" value="second" />
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