ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 4 Vertical Pills Menu
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, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> <title>Bootstrap Vertical Pills</title> </head> <body> <div class="container mt-4"> <h1>Bootstrap 4 Vertical Pills Menu</h1> <p class="text-justify">To create vertical pills menu, assign .flex-column to the nav element base class. </p> <nav class="nav nav-pills flex-column"> <a href="#" class="nav-item nav-link active"> <i class="fa fa-laptop" aria-hidden="true"></i> Design </a> <a href="#" class="nav-item nav-link"> <i class="fa fa-creative-commons" aria-hidden="true"></i> Creative </a> <a href="#" class="nav-item nav-link"> <i class="fa fa-mobile" aria-hidden="true"></i> App </a> </nav> </div> <!--/container--> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> </body> </html>
Output :
Running