Interaction

pointer-events

Learn how to use the CSS pointer-events property.

CSS pointer-events

The pointer-events property sets the pointer events for an HTML element.

Syntax

.element {
  pointer-events: none;
}

HTML Context Example

<div class="card">
  This is a styled element.
</div>

<style>
.card {
  pointer-events: none;
}
</style>

Notes

Experiment in the CSS playground to see how this affects layout and styling.