Skip to content

Instantly share code, notes, and snippets.

@yagopv
Created June 5, 2013 17:34
Show Gist options
  • Save yagopv/5715691 to your computer and use it in GitHub Desktop.
Save yagopv/5715691 to your computer and use it in GitHub Desktop.
Vertical align boxes
.h-vcenter-parent {
display: table;
}
.h-vcenter-child {
display: table-cell;
vertical-align: middle;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment