Tabs are used to separate content into different panes where each pane is viewable one at a time.
To center/justify the tabs and pills, use the .nav - justified class.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tutor Joes</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> <!--<link rel="stylesheet" href="css/bootstrap.min.css">--> <style> hr { margin-top: 15px; margin-bottom: 15px; display: block; } </style> </head> <body> <div class="container"> <div class="row"> <div class="col-md-12"> <h4>Pills</h4> <hr> <ul class="nav nav-pills"> <li class="active"><a href="#">menu-1</a></li> <li><a href="#">menu-2</a></li> <li><a href="#">menu-3</a></li> <li><a href="#">menu-4</a></li> <li><a href="#">menu-5</a></li> </ul> <hr> <div class="col-md-3"> <ul class="nav nav-pills nav-stacked"> <li class="active"><a href="#">menu-1</a></li> <li><a href="#">menu-2</a></li> <li><a href="#">menu-3</a></li> <li><a href="#">menu-4</a></li> <li><a href="#">menu-5</a></li> </ul> </div> </div> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> <!--<script src="js/jquery.min.js"></script>--> <!--<script src="js/bootstrap.min.js"></script>--> </body> </html>
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions