Responsive Circle Shape - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Layout

Description

Responsive Circle Shape

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 ww  . j a v  a 2  s  . c  o m-->
   width:calc(100vw / 6);
   height:calc(100vw / 6);
   background:red;
   border-radius:51%;
   float:left;
   margin:6px;
}
</style> 
 </head> 
 <body> 
  <div class="circle"></div> 
  <div class="circle"></div> 
  <div class="circle"></div> 
  <div class="circle"></div>  
 </body>
</html>

Related Tutorials