Skip to content

Instantly share code, notes, and snippets.

@akella
Last active December 6, 2018 20:59
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akella/f2902abd228bd86527fe to your computer and use it in GitHub Desktop.
Save akella/f2902abd228bd86527fe to your computer and use it in GitHub Desktop.
Justify for inline-block, and vertical-align for inline-block
=justify
text-align: justify
line-height: 0
font-size: 0
text-justify: newspaper
zoom: 1
text-align-last: justify
&:after
content: ""
display: inline-block
width: 100%
height: 0px
visibility: hidden
overflow: hidden
=vertical
text-align: center
font-size: 0
&:before
content: ""
display: inline-block
vertical-align: middle
width: 0
height: 100%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment