I want to highlight select div when mouse click event. To implement this, I used this code snippet
<div class="parent">
<div class="overlay"></div>
<div class="content">
<div class="subcontent-1">
...
</div>
<div class="highlight">
...
</div>
</div>
</div>
To overlay, I used following css
.overlay{
display:none;
background: rgba(0, 0, 0, 0.44);
z-index: 3;
position:absolute;
top:0;
left:0;
bottom:0;
right:0;
}
But this overlay only fill the screen height not the full page height (the parent div overflows screen height) This is how it looks like now I want stretch this overlay to the bottom of page, not height of screen.