Created
February 19, 2018 02:30
-
-
Save dmurawsky/d0a7086ed37879c824fcb4e3db57f53b to your computer and use it in GitHub Desktop.
How to center with table and cell
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
.center-table { | |
height: 100%; | |
width: 100%; | |
display: table; | |
} | |
.center-cell { | |
position: relative; | |
display: table-cell; | |
vertical-align: middle; | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment