Font-Awesome fa-circle with two colors - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font awesome

Description

Font-Awesome fa-circle with two colors

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-container {<!-- w ww .  j av a  2s  . c o m-->
   width:100px;
   height:100px
}

.quarter {
   width:51px;
   height:51px
}

.half {
   width:51%;
   height:100%;
}

.left {
   border-top-left-radius:51px;
   float:left;
   border-bottom-left-radius:51px;
   background:blue;
}

.right {
   border-top-right-radius:51px;
   float:right;
   border-bottom-right-radius:51px;
   background:red;
}

.top-left {
   border-top-left-radius:51px;
   background:Chartreuse;
   float:left
}

.top-right {
   border-top-right-radius:51px;
   background:yellow;
   float:right
}

.bottom-left {
   border-bottom-left-radius:51px;
   background:blue;
   float:left;
}

.bottom-right {
   border-bottom-right-radius:51px;
   background:pink;
   float:right
}
</style> 
 </head> 
 <body> 
  <div id="circle-container"> 
   <div class="quarter top-left"></div> 
   <div class="quarter top-right"></div> 
   <div class="quarter bottom-left"></div> 
   <div class="quarter bottom-right"></div> 
  </div> 
  <div id="circle-container"> 
   <div class="half left"></div> 
   <div class="half right"></div> 
  </div>  
 </body>
</html>

Related Tutorials