ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 5 Vertical Button Group
Source Code
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"> <title>Bootstrap 5 Vertical Button Group</title> </head> <body> <div class="container"> <h1>Bootstrap 5 Vertical Button Group</h1> <p> In this example, you will learn how to create a Bootstrap 5 vertical button group. To create, add the .btn-group-vertical class to the button group container. </p> <div class="btn-group-vertical " role="group" aria-label="Basic example"> <button type="button" class="btn btn-secondary">Top</button> <button type="button" class="btn btn-secondary">Middle</button> <button type="button" class="btn btn-secondary">Bottom</button> </div> </div><!--/container--> <!-- Option 1: Bootstrap Bundle with Popper --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"></script> </body> </html>
Output :
Running