I have two full screen divs stacked.
css
#border-overlay {
position:absolute;
z-index: 100;
top:0; left:0;
width: 100vw;
height: 100vh;
box-sizing: border-box;
border: solid 8px white;
}
#button
position: absolute;
display: block;
top: 0; left: 0;
height: 100%; width: 100%;
background-color: rgba(0,0,0,0);
z-index: 15;
}
html
<div id="border-overlay"></div>
<a id="button" href=""> ... </a>
I need the border div on top the button div, however this removes the link function of the button which I want to keep. Essentially the button takes up the full screen so you can click anywhere.