A Pen by Jessamyn Smith on CodePen.
Created
July 22, 2015 04:06
-
-
Save jessamynsmith/b9721d8606fc14acec07 to your computer and use it in GitHub Desktop.
xGapOP
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
<div class="container"> | |
<div class="big"> | |
<div class="medium"> | |
<div class="small"> | |
</div> | |
</div> | |
</div> | |
</div> |
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
.container { | |
width: 16%; | |
} | |
.big { | |
background-color: #68cdd9; | |
width: 100%; | |
padding-bottom: 100%; | |
border-radius: 50%; | |
} | |
.medium { | |
background-color: #a0dbcc; | |
float: left; | |
width: 74%; | |
margin-top: 13%; | |
margin-left: 13%; | |
padding-bottom: 14%; | |
border-radius: 50%; | |
z-index: 5; | |
} | |
.small { | |
background-color: #00abc9; | |
width: 60%; | |
margin-top: 20%; | |
margin-left: 20%; | |
padding-bottom: 60%; | |
border-radius: 50%; | |
z-index: 10; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment