Skip to content

Instantly share code, notes, and snippets.

@IndyIndyIndy
Last active August 29, 2015 13:56
Show Gist options
  • Save IndyIndyIndy/8841613 to your computer and use it in GitHub Desktop.
Save IndyIndyIndy/8841613 to your computer and use it in GitHub Desktop.
text-align-justify grid
.row {
text-align: justify;
line-height: 0;
}
.row-item {
display: inline-block;
width: 310px;
min-height: 10px;
text-align: left;
vertical-align: top;
line-height: 20px;
}
.row-item.gap {
min-height: 0;
background: none;
}
.row .break{
display: inline-block;
width: 100%;
}
/* IE7 */
*+html .row {
text-justify: distribute-all-lines;
zoom: 1;
}
*+html .row-item {
display: inline;
zoom: 1;
}
<div class="row">
<div class="row-item">
inhalt
</div>
<div class="row-item">
inhalt
</div>
<div class="row-item gap"></div>
<div class="break"></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment