logo
  Pop-up 4
 

Dit is een echte mooie pop-up.

 
IN DE CSS

.overlay {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.7);
transition: opacity 500ms;
visibility: hidden;
opacity: 0;
}
.overlay:target {
visibility: visible;
opacity: 1;
}

.popup {
text-align:justify;
margin: 70px auto;
padding: 10px;
background: #969696;
border-radius: 5px;
width: 800px;
position: relative;
transition: all 5s ease-in-out;
}

.popup h2 {
margin: 0px 0px 0px 30px;
color: #333;
font-family: Tahoma, Arial, sans-serif;
}
.popup .close {
position: absolute;
top: 20px;
right: 30px;
transition: all 200ms;
font-size: 30px;
font-weight: bold;
text-decoration: none;
color: #333;
}
.popup .close:hover {
color: #06D85F;
}
.popup .content {
max-height: 30%;
overflow: auto;
}


 

TUSSEN DE BODY TAGS
<div class="box">
<a class="button" href="#popup1">Let me Pop up</a></div>
<div id="popup1" class="overlay">
<div class="popup">
<h2>Koptekst</h2>
<a class="close" href="#">&times;</a>
<div class="content">
<img src="01.jpg" width="400" height="300" alt="kat" align="left" style="margin-right:5px">
Jou tekst.
</div>
</div>
</div>


 
eind