Created
May 30, 2013 21:26
-
-
Save jhafner/5681371 to your computer and use it in GitHub Desktop.
Text-align: Justify Grids Based on http://www.barrelny.com/blog/text-align-justify-and-rwd/
This file contains hidden or 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
/* Don't forget to add placeholder elements to your grid */ | |
#grid{ | |
text-align: justify; | |
font-size: 0.1px; /*hide whitespace between elements*/ | |
} | |
#grid li{ | |
display: inline-block; | |
width: 23%; | |
font-size: 14px; | |
} | |
#grid:after{ | |
content: ''; | |
display: inline-block; | |
width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment