Stylize a circle Fontawesome icon background - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font awesome

Description

Stylize a circle Fontawesome icon background

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> 
  <style id="compiled-css" type="text/css">
a {<!--from  ww  w  .  j av  a 2s  .com-->
   text-decoration:none;
}

.social-circle [class*="fa fa-"] {
   width:26px;
   height:26px;
   color:Chartreuse;
   background-color:yellow;
   border-radius:26px;
   display:inline-block;
   line-height:26px;
   margin:auto 4px;
   font-size:16px;
   text-align:center;
}

.fa-facebook:hover {
   background-color:blue;
}

.fa-twitter:hover {
   background-color:pink;
}

.fa-pinterest-p:hover {
   background-color:OrangeRed;
}
</style> 
 </head> 
 <body> 
  <div class="social-circle"> 
   <a class="fa fa-facebook" href="#"></a> 
   <a class="fa fa-twitter" href="#"></a> 
   <a class="fa fa-pinterest-p" href="#"></a> 
  </div>  
 </body>
</html>

Related Tutorials