I’ve checked some answers for the overlay full height problem, but there’s no proper answers.
How do you make an overlay to cover the whole page instead of part of it, which is annoying. And I’m doing height equals to 100%.
The overlay is made in jquery but obviously, the css can be done in a css file. But for the sake of simplicity…:
$('.overlay-test').click(function(e){
$('#ovelay-box').load('overlay.html', function(response){
$('#ovelay-box').css({
"opacity": 0.5,
"background": "#333",
"height": $('body').height(),
"position": "absolute",
"width": "100%",
"top": 0,
"color": "#333",
"font-size": "26px",
"font-weight": "bold"
});
$('.overlay').addClass('col-12-box').css({
"width": "770px",
"left": "129px",
"background": "#fff",
"padding": "20px",
"position": "absolute",
"top": "50px"
});
});
e.preventDefault();
});
the jquery
thc css
the html
hope this helps.