Bootstrap Table Responsive

 

.table-responsive class used to make a table responsive(means adjusting of design according to the size of screen).

 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Bootstrap Table Example</title> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <div class="table-responsive"> <table class="table"> <thead> <tr> <th>Firstname</th> <th>Lastname</th> <th>Qualification</th> </tr> </thead> <tbody> <tr> <td>John</td> <td>Morse</td> <td>MCA</td> </tr> <tr> <td>Mark</td> <td>juke</td> <td>B.TECH</td> </tr> <tr> <td>Max</td> <td>Ponting</td> <td>PHD</td> </tr> </tbody> </table> </div> </div> </body> </html>
Output