ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 4 Pills Active & Disabled Item
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 Pills</title> </head> <body> <div class="container mt-4"> <h1>Bootstrap 4 Pills Active & Disabled Item</h1> <p class="text-justify">To create pills link item active & disabled assign .active and .disabled to the hyperlink element base class respectively. </p> <ul class="nav nav-pills"> <li class="nav-item"> <a class="nav-link active" href="#">Active</a> </li> <li class="nav-item"> <a class="nav-link" href="#">Link1</a> </li> <li class="nav-item"> <a class="nav-link disabled" href="#">Link2</a> </li> </ul> </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