Menu Close

How to enable click-through div to underlying elements with CSS?

Sometimes, we want to enable click-through div to underlying elements with CSS

In this artricle, we’ll look at how to enable click-through div to underlying elements with CSS.

How to enable click-through div to underlying elements with CSS?

To enable click-through div to underlying elements with CSS, we disable clicks on the element.

For instance, we write

div {
  pointer-events: none;
  background: url("your_transparent.png");
}

to disable clicks on the div to enable click-through on its underlying elements.

Conclusion

To enable click-through div to underlying elements with CSS, we disable clicks on the element.

Posted in CSS