Align text and icon CSS - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Align text and icon CSS

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="http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css"> 
  <style id="compiled-css" type="text/css">
ul {<!--from  w  w  w  .j  a va  2s  .c  o  m-->
   list-style:none;
}

li {
   position:relative;
   padding:0 0 0 19px;
}

li:before {
   content:'\f4e';
   position:absolute;
   left:0px;
   font-family:'icons';
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li> <i class="fa"></i> lorem ipsum test <br> TEST <br> </li> 
   <li> <i class="fa"></i> 00 00 00 00 00 </li> 
  </ul>  
 </body>
</html>

Related Tutorials