I am working on a project where I want to replicate an illustration similar to this one
However, I am encountering an issue with the padding or margin. Here is what I have attempted so far: http://jsfiddle.net/kl94/RZPRS/2/
.circles {
background-color: red;
position:absolute;
right: 0;
top: 0;
margin: 0;
padding: 0;
}
.circle-title {
background-color: orange;
position:relative;
right: 0px;
top: 0px;
width: 80px;
height: 80px;
/* -webkit-border-radius: 40px;
-khtml-border-radius: 40px;
-moz-border-radius: 40px;
border-radius: 40px; */
margin:0;
padding:0;
}
.circle-reads {
background-color: #28dd21;
position:relative;
right: 0px;
top: 0px;
width: 60px;
height: 60px;
/* -webkit-border-radius: 30px;
-khtml-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px; */
margin:0;
padding:0;
}
The key requirement is for the red div to be absolutely positioned relative to the top/right parent div.