Last active
July 24, 2016 04:49
-
-
Save webarthur/b72c227903376f1f0f589a3b24e58b4c to your computer and use it in GitHub Desktop.
Como centralizar verticalmente uma div com flexbox
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> | |
.absmiddle { | |
display:flex; | |
align-items:center; | |
} | |
</style> | |
<div class="absmiddle" style="height:100px; background:gold"> | |
<div> | |
Elemento verticalmente centralizado! | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment