Categories
CSS

How to disable a href link in CSS?

Spread the love

To disable a href link in CSS, we set the pointer-event property.

For instance, we write

a {
  pointer-events: none;
}

to disable links by setting pointer-events to none.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

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