Center tabs in Bootstrap

Use the .nav-justified class in Bootstrap to center tabs in Bootstrap.

You can try to run the following code to center tabs −


Live Demo

<!DOCTYPE html>
      <title>Bootstrap Example</title>
      <link rel = "stylesheet" href = "">
      <script src = ""></script>
      <script src = ""></script>
      <div class = "container">
         <h2>Web Development</h2>
         <p>The following are the web dev technologies:</p>
         <ul class = "nav nav-pills nav-justified" role = "tablist">
            <li class = "active"><a href = "#">HTML5</a></li>
            <li><a href = "#">jQuery</a></li>
            <li><a href = "#">JavaScript</a></li>
            <li><a href = "#">Ajax</a></li>
            <li><a href = "#">ES6</a></li>