Group buttons on a single line with Bootstrap

BootstrapWeb DevelopmentCSS Framework

Use the .btn-group class in Bootstrap to group buttons on a single like.

You can try to run the following code to implement .btn-group class in Bootstrap:


Live Demo

<!DOCTYPE html>
      <title>Bootstrap Example</title>
      <link rel = "stylesheet" href = "">
      <script src = ""></script>
      <script src = ""></script>
      <p>The following are the car brands:</p>
      <div class = "btn-group">
         <button type = "button" class = "btn btn-default">BMW</button>
         <button type = "button" class = "btn btn-default">Audi</button>
         <button type = "button" class = "btn btn-default">Jeep</button>
         <button type = "button" class = "btn btn-default">Datsun</button>
         <button type = "button" class = "btn btn-default">Toyota</button>
         <button type = "button" class = "btn btn-default">Mahindra</button>
Published on 20-Jun-2018 18:05:27