Last active
August 29, 2015 14:05
-
-
Save i5ar/d016372e5574b71421af to your computer and use it in GitHub Desktop.
Responsive Circle
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
/* Responsive Circle */ | |
.circle-text { | |
width:50%; | |
margin-left:auto; | |
margin-right:auto; | |
} | |
.circle-text:after { | |
content: ""; | |
display: block; | |
width: 100%; | |
height:0; | |
padding-bottom: 100%; | |
background: #e6402a; | |
-webkit-border-radius: 50%; | |
-moz-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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment