Last active
September 10, 2019 16:34
-
-
Save saintsGrad15/475f594a6d69fd924cb9a3d715821b46 to your computer and use it in GitHub Desktop.
Vertically Center an Element
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
vertical-align: top; | |
display: inline-block; | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment