Last active
November 1, 2020 11:40
-
-
Save Beyarz/75c68cc7c8a0e7d85ea0a3b86792450d to your computer and use it in GitHub Desktop.
A way to put the content exactly in the center both vertical and horizontal
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.center { | |
min-height: 100vh; | |
align-items: center; | |
justify-content: center; | |
display: flex; | |
} | |
</style> | |
</head> | |
<body> | |
<p class="center">Always in middle</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment