Created
November 13, 2013 03:15
-
-
Save carlos-sanchez/7443096 to your computer and use it in GitHub Desktop.
Modal using big outline
This file contains 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
.modal { | |
/* some styles to position the modal at the center of the page */ | |
position: fixed; | |
top: 50%; | |
left: 50%; | |
width: 300px; | |
line-height: 200px; | |
height: 200px; | |
margin-left: -150px; | |
margin-top: -100px; | |
background-color: #f1c40f; | |
text-align: center; | |
/* needed styles for the overlay */ | |
z-index: 10; /* keep on top of other elements on the page */ | |
outline: 9999px solid rgba(0,0,0,0.5); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment