Skip to content

Instantly share code, notes, and snippets.

@andrewsmedina
Created June 16, 2011 18:21
Show Gist options
  • Save andrewsmedina/1029865 to your computer and use it in GitHub Desktop.
Save andrewsmedina/1029865 to your computer and use it in GitHub Desktop.
align element vertically
.container {
line-height: 85px; /* container height */
}
.element {
display:inline;
display:inline-table;
display:inline-block;
vertical-align:middle;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment