ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 4 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" /> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" /> <title>Bootstrap 4 Pills Menu</title> </head> <body> <div class="container mt-4"> <h1 class="text-center my-3">Bootstrap 4 Pills Menu</h1> <p class="text-justify my-3">In this example, you will learn and understand how to create a Bootstrap 4 pill menu. You can also edit the given source code and see the result instantly.</p> <div class="container mt-4"> <ul class="nav nav-pills"> <li class="nav-item"> <a class="nav-link active" href="#">Web design</a> </li> <li class="nav-item"> <a class="nav-link" href="#">Web Development</a> </li> <li class="nav-item"> <a class="nav-link" href="#">Graphics Design</a> </li> </ul> </div> <!--/container--> </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