- 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
Make a table responsive using the table-responsive class
To make a table responsive with Bootstrap, you can try to run the following code &miuns;
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>Student</th> </tr> </thead> <tbody> <tr class = "success"> <td>Programming</td> <td>90</td> <td>Amit</td> </tr> <tr class = "active"> <td>Web Dev</td> <td>92</td> <td>Yuvraj</td> </tr> <tr class = "warning"> <td>Science</td> <td>95</td> <td>Sachin</td> </tr> <tr class = "danger"> <td>Economics</td> <td>80</td> <td>Tony</td> </tr> </tbody> </table> </div> </body> </html>
- Related Articles
- Bootstrap table-responsive class
- Create Responsive Table with Bootstrap
- How to create a responsive table with CSS?
- How to create a responsive pricing table with CSS?
- Make an image responsive with Bootstrap
- How to make an image responsive in HTML?
- Bootstrap 3 truncate long text inside rows of a table in a responsive way with HTML
- Set Responsive Font Size using CSS
- Creating a responsive Video Player using Video.js\n
- How to create a responsive custom scrollbar using CSS?
- CSS3 Responsive Web Design
- Bootstrap responsive utility classes
- Responsive grid with Bootstrap
- Create a responsive pagination with CSS
- How to design a responsive website?

Advertisements