- 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
Apply the hover color to a particular table row or cell with Bootstrap
To apply hover color to a particular table row or cell with Bootstrap, use the .active class. You can try to run the following code to implement the .active class −
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 class = "active"> <td>C++</td> <td>70</td> <td>Programming Language</td> </tr> <tr> <td>PHP</td> <td>92</td> <td>Scripting Language</td> </tr> <tr> <td>jQuery</td> <td>80</td> <td>JavaScript Library</td> </tr> </tbody> </table> </div> </body> </html>
- Related Articles
- Indicate a dangerous action to a particular table row or cell with Bootstrap
- Indicate a successful action to a particular table row or cell with Bootstrap
- Indicate a warning action to a particular table row or cell with Bootstrap
- Add hover color to background color of the table row in Bootstrap
- Add hover color to a table with Bootstrap
- Bootstrap table-hover class
- Add information to the table row with Bootstrap
- Show dangerous action on a table row with Bootstrap
- How to apply custom color to glyphicon icon embed within a link styled with Bootstrap?
- How to get the values of a particular row in a table in Selenium with python?
- Apply CSS on a table cell based on the content in SAPUI5
- How to apply the hover effect over the button using SASS?
- How to set a value in a particular JTable cell with Java?
- How can we fetch a particular row as output from a MySQL table?
- How to find the frequency of a particular word in a cell of an excel table using Python?

Advertisements