Bootstrap btn-toolbar class

BootstrapWeb DevelopmentCSS Framework

Set Button Toolbar in Bootstrap using the btn-toolbar class.

You can try to run the following code to implement the btn-toolbar class −

Example

 Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
      <script src="/scripts/jquery.min.js"></script>
      <script src="/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <div class = "btn-toolbar" role = "toolbar">
         <div class = "btn-group">
            <button type = "button" class = "btn btn-default">MCA</button>
            <button type = "button" class = "btn btn-default">BCA</button>
         </div>
         <div class = "btn-group">
            <button type = "button" class = "btn btn-default">MBA</button>
            <button type = "button" class = "btn btn-default">MS</button>
         </div>
      </div>
   </body>
</html>
raja
Published on 14-Jun-2018 09:03:50
Advertisements