How to fix “cursor: pointer” effect in CSS not working?

Spread the love

To fix "cursor: pointer" effect in CSS not working, we should set pointer-events to auto.

For instance, we write

.about > span {
  cursor: pointer;
  pointer-events: auto;

to add pointer-events: auto; to enable mouse events on the span.

Then we add cursor: pointer; to set the cursor to a pointer.

Leave a Reply

Your email address will not be published. Required fields are marked *