HTML/CSS: Make a div “invisible” to clicks?

It can be done using CSS pointer-events. This property is supported in Firefox 3.6+, Chrome 2+, IE 11+, and Safari 4+. Unfortunately, I don’t have knowledge of a cross-browser workaround.

#overlay {
  pointer-events: none;
}

Leave a Comment