Sometimes, we want to set cursor style to pointer for links without hrefs with CSS.
In this article, we’ll look at how to set cursor style to pointer for links without hrefs with CSS.
How to set cursor style to pointer for links without hrefs with CSS?
To set cursor style to pointer for links without hrefs with CSS, we set the cursor
property.
For instance, we write
a:hover {
cursor: pointer;
}
to add cursor: pointer;
to set the cursor to the default pointer style when we hover over a link.
Conclusion
To set cursor style to pointer for links without hrefs with CSS, we set the cursor
property.