Created
November 28, 2016 16:31
-
-
Save fotan/123075682ea0e45da4f549c13c22723d to your computer and use it in GitHub Desktop.
BS3 - Center Modal on Page
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 { | |
text-align: center; | |
} | |
@media screen and (min-width: 768px) { | |
.modal:before { | |
display: inline-block; | |
vertical-align: middle; | |
content: " "; | |
height: 100%; | |
} | |
} | |
.modal-dialog { | |
display: inline-block; | |
text-align: left; | |
vertical-align: middle; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment