Line 17: | Line 17: | ||
.modal { | .modal { | ||
display: none; /* Hidden by default */ | display: none; /* Hidden by default */ | ||
− | position: | + | position: block; /* Stay in place */ |
− | z-index: | + | z-index: 1000; /* Sit on top */ |
padding-top: 100px; /* Location of the box */ | padding-top: 100px; /* Location of the box */ | ||
left: 0; | left: 0; | ||
Line 96: | Line 96: | ||
<body> | <body> | ||
− | <img id="myImg" src="https:// | + | <img id="myImg" src="https://www.w3schools.com/howto/img_snow.jpg" alt="Snow" style="width:100%;max-width:300px"> |
<!-- The Modal --> | <!-- The Modal --> |
Revision as of 20:10, 10 August 2018
×