- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Create Responsive Table with Bootstrap
To create a responsive table with Bootstrap, use the table-responsive class.
You can try to run the following code to form a responsive table −
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Table</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div class = "table-responsive"> <table class = "table"> <thead> <tr> <th>Subject</th> <th>Marks</th> <th>Type</th> </tr> </thead> <tbody> <tr> <td>Java</td> <td>90</td> <td>Programming Language</td> </tr> <tr> <td>PHP</td> <td>92</td> <td>Scrpting Language</td> </tr> <tr> <td>jQuery</td> <td>80</td> <td>JavaScript Library</td> </tr> </tbody> </table> </div> </body> </html>
- Related Articles
- Bootstrap table-responsive class
- Create Table with Bootstrap
- How to create a responsive website with Bootstrap 4?
- How to create a responsive table with CSS?
- Responsive grid with Bootstrap
- How to create a responsive pricing table with CSS?
- Make an image responsive with Bootstrap
- Responsive Images in Bootstrap with Examples
- Bootstrap responsive utility classes
- Bootstrap 3 truncate long text inside rows of a table in a responsive way with HTML
- Create a responsive pagination with CSS
- Make a table responsive using the table-responsive class
- Responsive Video or Slideshow Embeds in Bootstrap with Examples
- How to create responsive typography with CSS?
- How to create responsive testimonials with CSS?

Advertisements