Created
April 18, 2013 05:13
-
-
Save diogeneshamilton/5410302 to your computer and use it in GitHub Desktop.
HTML5 / CSS3 Circle with Partial Border
This file contains hidden or 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
/** | |
* HTML5 / CSS3 Circle with Partial Border | |
* http://stackoverflow.com/q/13059190/1397351 | |
*/ | |
* { margin: 0; padding: 0; } | |
.circle { | |
position: relative; | |
margin: 5% auto; | |
width: 50%; height: 50%; | |
border-radius: 100%; | |
background: lightblue; | |
} | |
.container { | |
width: 100px; height: 100px; | |
border-radius: 50%; | |
background: lightblue; | |
} |
This file contains hidden or 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
<!-- content to be placed inside <body>…</body> --> | |
<div class='container'> | |
<div class='circle'> | |
</div> | |
</div> |
This file contains hidden or 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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment