My post refers to http://www.thepostboard.net
I need to make a black box, which currently covers 100% of the viewport, closes the entire page. You can only notice this if your screen needs a scroll bar to view the website - otherwise it looks fine.
I have an overlay set of divs:
position: absolute; height: 100%; width: 100%;
I also have the body installed:
height: 100%; margin: 0px 0px; padding: 0px; 0px;
But for some reason on my laptop, if I scroll down, I see the edge of the DIV, and nothing is blocked under it.
The purpose of this is to create a custom lightbox for the website. I turned off Javascript, which reduces the size of the window so you can see the effect.
How to do this so that it covers the entire page, and not just the viewing area?
(My laptop is 1366x768, so you'll probably see it on anything with a height resolution <= 760).
javascript html layout height
Tiger trussell
source share