Link with font awesome icon - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font awesome

Description

Link with font awesome icon

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://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css"> 
  <style id="compiled-css" type="text/css">
.sidebar-linebreak {<!--   w  w  w.  j a v  a 2  s  . com-->
   font-family:'Raleway', sans-serif;
   display:block;
   color:Chartreuse;
   font-size:19px;
   margin-bottom:6px;
   padding:.5em .9em;
   border-radius:9px;
   width:100%;
}

.sidebar-linebreak:hover {
   color:yellow;
}

.sidebar-linebreak-active, sidebar-linebreak-active:hover {
   font-family:'Raleway', sans-serif;
   display:inline-block;
   font-size:19px;
   margin-bottom:6px;
   padding:.5em .9em;
   border-radius:9px 0 0 9px;
   width:100%;
   color:blue;
   background-color:pink;
   position:relative;
}

.sidebar-linebreak-active:after {
   content:"";
   display:inline-block;
   width:0;
   height:0;
   border-top:21px solid OrangeRed;
   border-bottom:21px solid grey;
   border-left:21px solid BlueViolet;
   position:absolute;
   top:-3px;
   right:0;
}

.sidebar-linebreak-active-arrow:after {
   clear:both;
}
</style> 
 </head> 
 <body> 
  <a href="features.php" class="sidebar-linebreak-active"> <i class="fa fa-trophy fa-lg"></i>Lorem ipsum dolor si</a> 
  <div class="sidebar-linebreak-active-arrow"></div> 
  <a href="create-your-store.php" class="sidebar-linebreak"> <i class="fa fa-building fa-lg"></i>Lorem ipsum dolor s</a> 
  <a href="configure-your-products.php" class="sidebar-linebreak"> <i class="fa fa-money fa-lg"></i>Lorem ipsum dolor sit ame</a> 
  <a href="manage-your-store.php" class="sidebar-linebreak"> <i class="fa fa-fax fa-lg"></i>Lorem ipsum dolor s</a> 
  <a href="rank-high-in-search.php" class="sidebar-linebreak"> <i class="fa fa-rocket fa-lg"></i>Lorem ipsum dolor sit</a> 
  <a href="marketing.php" class="sidebar-linebreak"> <i class="fa fa-users fa-lg"></i>Lorem ipsum</a> 
  <a href="conversion-tools.php" class="sidebar-linebreak"> <i class="fa fa-cogs fa-lg"></i>Lorem ipsum dolor </a> 
  <a href="hosting-and-security.php" class="sidebar-linebreak"> <i class="fa fa-cloud fa-lg"></i>Lorem ipsum dolor si</a> 
  <a href="analytics.php" class="sidebar-linebreak"> <i class="fa fa-database fa-lg"></i>Lorem ipsum</a> 
  <a href="apps-and-integration.php" class="sidebar-linebreak"> <i class="fa fa-laptop fa-lg"></i>Lorem ipsum dolor sit</a> 
  <a href="expert-support.php" class="sidebar-linebreak"> <i class="fa fa-umbrella fa-lg"></i>Lorem ipsum dolo</a>  
 </body>
</html>

Related Tutorials