Created
May 17, 2021 07:07
-
-
Save A973C/6a44e467aa483fa4e88fe9d2fcdc8435 to your computer and use it in GitHub Desktop.
Center vertically #css
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
<style> | |
.element { | |
margin-top: 50vh; | |
transform: translateY(-50%); | |
} | |
</style> | |
<div class="element">center ?</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment