A Pen by Captain Anonymous on CodePen.
-
-
Save ellefsen/37169ffd14a362b3bf58 to your computer and use it in GitHub Desktop.
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