Created
September 15, 2013 21:40
Yin-Yang Pure CSS
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
#olaquehace { | |
width: 100px; height: 200px; | |
background: #fff; | |
border-color: #000; | |
border-style: solid; | |
border-width: 2px 100px 2px 2px; | |
border-radius: 100%; | |
position: relative; | |
} | |
#olaquehace:before { | |
content: ""; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
background: #fff; | |
border: 36px solid #000; | |
border-radius: 100%; | |
width: 28px; | |
height: 28px; | |
} | |
#olaquehace:after { | |
content: ""; | |
position: absolute; | |
top: 0; | |
left: 50%; | |
background: #000; | |
border: 36px solid #fff; | |
border-radius:100%; | |
width: 28px; | |
height: 28px; | |
} |
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
<html> | |
<head> | |
<link href='yinyang.css' rel="stylesheet" type="text/css"> | |
</head> | |
<body> | |
<div id="olaquehace"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment