My panel is <div>
or <span>
. It is actually invisible but how do I make it transparent for mouse clicks? You see that first button gains more 1s on every clicks on the screen. The train stops however when you click in the upper right invisible panel with buttons. It selects the buttons instead, which means that panel is not completely transparent and intercepts the mouse events.
#controls {
left: 0; top: 0;
position: absolute;
margin: 0;
padding: 0;
}
#rest {
background-color:red;
left: 0; top: 0;
position: absolute;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
<div id="rest" onclick="javascript:button1.innerHTML += 1"></div>
<div id="controls">
<button id="button1">button11111111111111111</button><br />
<button>button3</button> <br><button>button5</button><br />
<button>button4</button>
</div>