Make a stacked Font Awesome icon have the same width as a fixed width non stacked one - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font awesome

Description

Make a stacked Font Awesome icon have the same width as a fixed width non stacked one

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://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"> 
  <style id="compiled-css" type="text/css">
.fa-sm {<!--from  w ww.  ja  v  a  2  s  . co m-->
   font-size:0.64em;
}
</style> 
 </head> 
 <body> 
  <i class="fa fa-skype fa-fw"></i>Lorem i 
  <br> 
  <i class="fa fa-envelope-o fa-fw"></i>Lorem i 
  <br> 
  <span class="fa-stack fa-sm"> <i class="fa fa-exclamation fa-stack-1x"></i> <i class="fa fa-circle-o fa-stack-2x text-danger"></i> </span>Lorem ipsum do 
  <br>  
 </body>
</html>

Related Tutorials