Skip to content

Instantly share code, notes, and snippets.

@verteb
Created June 10, 2013 15:14
Show Gist options
  • Select an option

  • Save verteb/5749557 to your computer and use it in GitHub Desktop.

Select an option

Save verteb/5749557 to your computer and use it in GitHub Desktop.
CSS - Grid responsive justify
.jGrid {
text-align: justify;
display: block;
padding: 0;
margin: 0;
letter-spacing: 0.1px;
text-rendering: optimizespeed;
}
.jGrid:after{
content: '';
display: inline-block;
width: 100%;
}
.lt-ie8 .jGrid{
width: 100%;
text-justify: distribute-all-lines;
}
.jGrid .column {
width: 240px;
display: inline-block;
vertical-align: top;
text-align: left;
letter-spacing: normal;
word-spacing: normal;
text-rendering: auto;
}
.lt-ie8 .jGrid .column{
display:inline;
zoom:1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment