Skip to content

Instantly share code, notes, and snippets.

@zeayes
Created July 29, 2016 01:07
Show Gist options
  • Save zeayes/97767562cff773341b096cb7a0dd6095 to your computer and use it in GitHub Desktop.
Save zeayes/97767562cff773341b096cb7a0dd6095 to your computer and use it in GitHub Desktop.
#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;
}
<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