Font awesome icons alignment - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font awesome

Description

Font awesome icons alignment

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor sit </title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"> 
  <style id="compiled-css" type="text/css">
.trash {<!--  w  ww.j  a  v a 2  s .c o  m-->
   position:relative;
   font-size:12px;
}

.upload {
   position:relative;
   font-size:12px;
}

.download {
   position:relative;
   top:2px;
   font-size:12px;
}

.fa {
   text-align:center;
   width:17px;
}
</style> 
 </head> 
 <body> 
  <i class="fa fa-download download"></i> 
  <i class="fa fa-upload upload"></i> 
  <i class="fa fa-trash trash"></i>  
 </body>
</html>

Related Tutorials