Put two divs shaped as circles next to each other - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Shape

Description

Put two divs shaped as circles next to each other

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
#circle {<!--from w  w w .j a  va  2s.com-->
   background-color:Chartreuse;
   width:51px;
   height:51px;
   border-radius:26px;
   z-index:11;
   margin-left:26px;
}

#circle1 {
   background-color:yellow;
   width:51px;
   height:51px;
   border-radius:26px;
   z-index:11;
   margin-left:26px;
}
</style> 
 </head> 
 <body> 
  <div id="circle1"> 
   <div id="circle"> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials