Skip to content

Instantly share code, notes, and snippets.

@vuonglam94
Last active June 27, 2018 07:16
Show Gist options
  • Save vuonglam94/90a9f83b86804bf23b599c7a54f67ee2 to your computer and use it in GitHub Desktop.
Save vuonglam94/90a9f83b86804bf23b599c7a54f67ee2 to your computer and use it in GitHub Desktop.
[HTML-CSS] Div vertical-align: middle in another div
/*CLASS OUTER DIV*/
.outer {
display: table;
}
/*CLASS INNER DIV*/
.inner {
display: table-cell;
vertical-align: middle;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment