Bootstrap btn-toolbar class



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>
Updated on: 2020-06-12T10:25:58+05:30

457 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements