Bootstrap Button Toolbar

Bootstrap toolbar is set of multiple group button in single line.  class=”btn btn-info”.

If require to justify, then use – .btn-group-justified and if require to vertical button group, then use – .btn-group-vertical.

Example:

<!DOCTYPE html>
<html>
<head>
<meta charset=“utf-8”>
<title> Bootstrap Button Toolbar </title>
<meta name=“viewport” content=“width=device-width, initial-scale=1”>

<!–Bootstrap css file–>
<link rel=“stylesheet” href=“https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css”>
<link rel=“stylesheet” href=“https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css”>
</head>

<body>

<div class=“container”>
<h1> Bootstrap Button Toolbar </h1>

<div class=“btn-toolbar”>
<div class=“btn-group”>
<button type=“button” class=“btn btn-info”> << </button>
</div>
<div class=“btn-group”>
<button type=”button” class=“btn btn-info”> 1 </button>
<button type=“button” class=“btn btn-info”> 2 </button>
<button type=“button” class=“btn btn-info”> 3 </button>
<button type=“button” class=“btn btn-info”> 4 </button>
<button type=“button” class=”btn btn-info”> 5 </button>
<button type=“button” class=“btn btn-info”> 6 </button>
<button type=“button” class=“btn btn-info”> 7 </button>
</div>
<div class=“btn-group”>
<button type=“button” class=“btn btn-info”> >> </button>
</div>
</div>

</div>

<!–End Container–>

<!–Bootstrap js file–>
<script src=“https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”> </script>
<script src=“https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js”> </script>

</body>

</html>

RESULT:

bootstrap-button-toolbar


Leave a Reply

avatar
  Subscribe  
Notify of