Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.