Created
July 29, 2016 01:07
-
-
Save zeayes/97767562cff773341b096cb7a0dd6095 to your computer and use it in GitHub Desktop.
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
#parent{ | |
width:400px; | |
height: 200px; | |
background-color: #ccc; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
margin: -100px 0 0 -200px; | |
} | |
#child1 { | |
width: 50px; | |
height: 50px; | |
background-color: #fc0; | |
border-bottom-right-radius: 100%; | |
position: absolute; | |
} | |
#child2 { | |
width: 50px; | |
height: 50px; | |
background-color: #fc0; | |
border-top-left-radius: 100%; | |
position: absolute; | |
top: 150px; | |
left: 350px; | |
} |
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 id="parent"> | |
<div id="child1"></div> | |
<div id="child2"></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment