Skip to content

Instantly share code, notes, and snippets.

@newtone
Created September 6, 2020 10:46
Show Gist options
  • Save newtone/c3a91c2c970f0cac73ebe76a25d2f942 to your computer and use it in GitHub Desktop.
Save newtone/c3a91c2c970f0cac73ebe76a25d2f942 to your computer and use it in GitHub Desktop.
.parent::before {
content: "";
display: inline-block;
height: 100%;
vertical-align: middle;
}
.child {
display: inline-block;
vertical-align: middle;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment