I don't know, what should I use
.myclass {
cursor: pointer;
}
or
.myclass:hover {
cursor: pointer;
}
Or there is no difference?
Use whatever you want.
I'd use the first one for it will save me a few lines of CSS
Otherwise you can specify a different pointer for all other pseudo classes.
like:
a:link{cursor:pointer;} /* you still dont need it ... as it's default*/
a:hover{cursor:crosshair;}
a:active:{cursor:wait;}
a:visited{cursor:wait;}
There is no difference - the cursor will change in either case.
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