HTML CSS examples for Bootstrap Class List:table-condensed
table-condensed - Makes a table more compact by cutting cell padding
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head><!--from www. ja va 2 s. c o m--> <body> <div class="container"> <h2>Condensed Table</h2> <p>The .table-condensed class makes a table more compact by cutting cell padding in half:</p> <table class="table table-condensed"> <thead> <tr> <th>Firstname</th> <th>Lastname</th> <th>Email</th> </tr> </thead> <tbody> <tr> <td>John</td> <td>H</td> <td>I</td> </tr> <tr> <td>Mary</td> <td>K</td> <td>L</td> </tr> <tr> <td>July</td> <td>java2s.com</td> <td>b o o k 2 s.com</td> </tr> </tbody> </table> </div> </body> </html>