Skip to content

Instantly share code, notes, and snippets.

Created June 9, 2014 19:45
Show Gist options
  • Save anonymous/51230e2347097eb01481 to your computer and use it in GitHub Desktop.
Save anonymous/51230e2347097eb01481 to your computer and use it in GitHub Desktop.
Untitled
.container {
border: 2px solid black;
text-align: justify;
margin: 0;
padding: 0;
font-size: 0; /* magic! no space after :) */
}
.container:after {
content: '';
width: 100%;
display: inline-block;
}
.content {
width: 20%;
display: inline-block;
height: 100px;
background-color: red;
list-style: none;
font-size: 2rem;
text-align: center;
line-height: 100px;
color: white;
}
<ul class="container">
<li class="content">Blah</li>
<li class="content">Bleh</li>
<li class="content">Blih</li></ul>
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment