Created
November 27, 2013 09:34
-
-
Save fieke/7673037 to your computer and use it in GitHub Desktop.
responsive circles
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
.circle-text { | |
width:50%; | |
} | |
.circle-text:after { | |
content: ""; | |
display: block; | |
width: 100%; | |
height:0; | |
padding-bottom: 100%; | |
background: #4679BD; | |
-moz-border-radius: 50%; | |
-webkit-border-radius: 50%; | |
border-radius: 50%; | |
} | |
.circle-text div { | |
float:left; | |
width:100%; | |
padding-top:50%; | |
line-height:1em; | |
margin-top:-0.5em; | |
text-align:center; | |
color:white; | |
} |
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="circle-text"><div>I'm a Circle!</div></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment