Pure CSS: How to disable clicking inside div.

Deepak
TarkaLabs TIL
Published in
1 min readSep 17, 2018

Today I found a pure-css way to disable clicking inside a div, instead of overlaying another div on top.

pointer-events:none

Understand the audience of your app before you use this to disable clicking. Undoing this to regain click access will be very easy from developer tools. But nevertheless, this is really handy.

--

--