JSFiddle - React, Tailwind, and code Playground
HTML
<div class="divInQuestion"></div>
<div class="underlyingDiv"></div>
CSS
.divInQuestion{
background-image: url("http://i.imgur.com/tn2XJjU.png");
width: 230px;
height: 230px;
position: relative;
top:50px;
left:50px;
z-index: 1;
}
.underlyingDiv{
position: absolute;
top:190px;
left:100px;
background-color: red;
width: 50px;
height: 50px;
}
JavaScript
$(function(){
$(".divInQuestion").click(function(){
alert("Green Div Clicked");
});
$(".underlyingDiv").click(function(){
alert("Red Div Clicked");
});
});