HTML CSS examples for CSS Widget:Nav Bar
Position font-awesome icons above navbar links
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="http:////netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css"> <link rel="stylesheet" type="text/css" href="https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css"> <style id="compiled-css" type="text/css"> li {<!--from w ww . j a v a 2s.c om--> text-align:center; } .icon-large { font-size:15pt; } .wrd { padding-top:6px !important; } </style> </head> <body> <section class="row-fluid"> <nav class="span2"> <ul class="side-nav nav nav-pills nav-stacked"> <li> <a href="#"> <i class="icon-large icon-home"></i> <br> <div class="wrd"> Lorem ipsum </div> </a> </li> <li> <a href="#"> <i class="icon-large icon-key"></i> <br> <div class="wrd"> Lorem ipsu </div> </a> </li> <li> <a href="#"> <i class="icon-large icon-download-alt"></i> <br> <div class="wrd"> Lorem ipsum </div> </a> </li> <li> <a href="#"> <i class="icon-large icon-question-sign"></i> <br> <div class="wrd"> Lorem ipsu </div> </a> </li> </ul> </nav> </section> <br> <br> <section class="row-fluid"> <nav class="span2"> <ul class="nav nav-pills"> <li> <a href="#"> <i class="icon-large icon-home"></i> <br> <div class="wrd"> Lorem ipsum </div> </a> </li> <li> <a href="#"> <i class="icon-large icon-key"></i> <br> <div class="wrd"> Lorem ipsu </div> </a> </li> <li> <a href="#"> <i class="icon-large icon-download-alt"></i> <br> <div class="wrd"> Lorem ipsum </div> </a> </li> <li> <a href="#"> <i class="icon-large icon-question-sign"></i> <br> <div class="wrd"> Lorem ipsu </div> </a> </li> </ul> </nav> </section> </body> </html>