Bootstrap Tutorial - Create Button group with icons








The following code shows how to create Button group with icons.

Example

<!DOCTYPE html>
<html> 
<head>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css">
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css">
</head><!--from   w ww .ja  v  a2s . com-->
<body>
  <p class="alert alert-warning">
    Example of Button group with icons <i class="icon-arrow-down"></i>
  </p>
  <div class="btn-group">
    <a class="btn" href="#">
    <i class="icon-edit"></i></a> 
    <a class="btn" href="#">
    <i class="icon-cut"></i></a> 
    <a class="btn" href="#">
    <i class="icon-copy"></i></a> 
    <a class="btn" href="#">
    <i class="icon-paste"></i></a>
  </div>
</body>
</html>

Click to view the demo