A Pen by Captain Anonymous on CodePen.
Created
March 17, 2015 18:30
-
-
Save anonymous/95701af7ae60221966c3 to your computer and use it in GitHub Desktop.
gbQdGm
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
<ul> | |
<li class="big"></li> | |
<li class="yellow"></li> | |
<li></li> | |
<li></li> | |
<li class="yellow"></li> | |
</ul> |
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
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