Skip to content

Instantly share code, notes, and snippets.

@hoichi
Created September 24, 2015 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoichi/b9dfb5da3712cd78d621 to your computer and use it in GitHub Desktop.
Save hoichi/b9dfb5da3712cd78d621 to your computer and use it in GitHub Desktop.
A poor man's flexbox
/* © http://codepen.io/chriscoyier/pen/nfyGk */
#container {
text-align: justify;
font-size: 0.1px; /* IE 9 & 10 don't like font-size: 0; */
min-width: 600px;
}
#container div {
width: 150px;
height: 125px;
display: inline-block;
}
#container:after {
content: '';
width: 100%; /* Ensures there are at least 2 lines of text, so justification works */
display: inline-block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment