I have a div
that has background:transparent
, along with border
. Underneath this div
, I have more elements.
Curre
Allowing the user to click through a div
to the underlying element depends on the browser. All modern browsers, including Firefox, Chrome, Safari, and Opera, understand pointer-events:none.
For IE, it depends on the background. If the background is transparent, clickthrough works without you needing to do anything. On the other hand, for something like background:white; opacity:0; filter:Alpha(opacity=0);
, IE needs manual event forwarding.
See a JSFiddle test and CanIUse pointer events.