Skip to content

Instantly share code, notes, and snippets.

@raarellano
Created March 29, 2014 01:41
Show Gist options
  • Save raarellano/9846805 to your computer and use it in GitHub Desktop.
Save raarellano/9846805 to your computer and use it in GitHub Desktop.
Align element vertically CSS
.parent{
display: table;
}
.child{
vertical-align: middle;
display: table-cell;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment