At the bottom of your HTML, create a
with id = overlay. When you open the page, a series of divs appears over your content with important messages or images. How To Create a Modal Box. A small box that pops up to tell you something important. Wellllll. A new stacking layer on top of the existing CSS stacking contexts handles always on top behavior. Modal Image.