Created
August 6, 2013 23:10
CSS para alinhar verticalmente 2 elementos
This file contains hidden or 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
@william o que vcs usam no CSS para alinhar verticalmente 2 elementos (img e p) no meio de uma div? | |
@shiota display: table-cell + vertical-align: middle ou, se for só uma linha de texto, setar o line-height do p com a altura da img. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment