Skip to content

Instantly share code, notes, and snippets.

@SandeepTuniki
Created August 5, 2016 08:05
Show Gist options
  • Save SandeepTuniki/3e28908b84ed54ac2f35a176936556cd to your computer and use it in GitHub Desktop.
Save SandeepTuniki/3e28908b84ed54ac2f35a176936556cd to your computer and use it in GitHub Desktop.
Minimal HTML & CSS required for a popup's skeleton
.popup-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.2);
}
.popup-cnt {
position: absolute;
width: 60%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: pink;
}
<div class="popup-overlay">
<div class="popup-cnt">
Popup's content goes here!
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment