Open In App

What is the use of the CSS pointer-events Property?

The Pointer-events property in CSS is used to control how an element responds to pointer events, such as mouse clicks and hover interactions. It provides a way to determine whether an element should be a target for user input.

The pointer-events property can take various values, including auto, none, and others also.

Syntax:

/* Making an element unresponsive to pointer events */

.non-interactive {
pointer-events: none;
}

Features:

The pointer-events property also:

Article Tags :