Created
August 5, 2016 08:05
-
-
Save SandeepTuniki/3e28908b84ed54ac2f35a176936556cd to your computer and use it in GitHub Desktop.
Minimal HTML & CSS required for a popup's skeleton
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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