How to make underlying div unclickable?

Goran picture Goran · Dec 12, 2009 · Viewed 23.4k times · Source

I made overlay div with:

position: absolute; top: 0; left: 0; widht: 100%; height: 100%;

Basically I want this overlay div to cover my whole page. And it does what I need, but I also need underlying divs to be unclickable. They are indeed unclickable but only in FF, Safari and Chrome. in IE and Opera you can still click buttons that are underneath.

Does anyone have any idea on how can I achieve this "unclickable underlying behaviour"?

Answer

Kadae picture Kadae · Jan 9, 2014
.class {pointer-events: none;}