Sometimes, we want to change the cursor into a hand when a user hovers over a list item with CSS.
We’ll look at how to change the cursor into a hand when a user hovers over a list item with CSS, in this article.
How to change the cursor into a hand when a user hovers over a list item with CSS?
We set the cursor property, to change the cursor into a hand when a user hovers over a list item with CSS.
For instance, we write
li {
cursor: pointer;
}
to make the cursor turn into a hand, we add the cursor: pointer
style, when we hover over li elements.
Conclusion
Then we set the cursor property, to change the cursor into a hand when a user hovers over a list item with CSS .