Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make underlying div unclickable?

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"?

like image 423
Goran Avatar asked Dec 12 '09 21:12

Goran


2 Answers

.class {pointer-events: none;}
like image 164
Kadae Avatar answered Oct 12 '22 21:10

Kadae


Add an onclick handler for the overlay div.

like image 22
clorz Avatar answered Oct 12 '22 21:10

clorz