Categories
CSS

How to disable div element and everything inside with CSS?

Spread the love

To disable div element and everything inside with CSS, we set the pointer-events CSS property of the div to none.

For instance, we write

div {
  pointer-events: none;
}

to disable pointer events on the div with pointer-events set to none with CSS.

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 *