Skip to content

Instantly share code, notes, and snippets.

@ellefsen
Forked from anonymous/gbQdGm.markdown
Created March 17, 2015 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ellefsen/37169ffd14a362b3bf58 to your computer and use it in GitHub Desktop.
Save ellefsen/37169ffd14a362b3bf58 to your computer and use it in GitHub Desktop.
<ul>
<li class="big"></li>
<li class="yellow"></li>
<li></li>
<li></li>
<li class="yellow"></li>
</ul>
ul {
margin: 0;
padding: 0;
}
ul:before, ul:after {
content: " ";
display: table;
}
li {
float: left;
width: 25%;
padding-bottom: 25%;
list-style: none;
background: blue;
}
li.yellow {
background: yellow;
}
li.big {
width: 50%;
padding-bottom: 50%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment