Last active
August 29, 2015 13:56
-
-
Save IndyIndyIndy/8841613 to your computer and use it in GitHub Desktop.
text-align-justify grid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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