Skip to content

Instantly share code, notes, and snippets.

@mateuslopes
Created June 3, 2012 16:11
Show Gist options
  • Save mateuslopes/2864043 to your computer and use it in GitHub Desktop.
Save mateuslopes/2864043 to your computer and use it in GitHub Desktop.
CSS: Vertical align center (without line-height)
.v-center, .vertical-center, .v-middle, .vertical-middle {
display: table-cell;
vertical-align: middle;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment