
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Add hover color to background color of the table row in Bootstrap
To add hover color to background color of the table row, use the .active class in Bootstrap.
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</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 = "container"> <h2>Student Information</h2> <table class="table"> <thead> <tr> <th>Student</th> <th>Subject</th> </tr> </thead> <tbody> <tr> <td>Tom</td> <td>Maths</td> </tr> <tr> <td>Amit</td> <td>Programming</td> </tr> <tr class = "active"> <td>Steve</td> <td>Java</td> </tr> </tbody> </table> </div> </body> </html>
- Related Questions & Answers
- Add hover color to a table with Bootstrap
- Apply the hover color to a particular table row or cell with Bootstrap
- Add a grey background color to the Bootstrap 4 card
- Add a light grey background color to the Bootstrap 4 card
- Add a blue background color to simulate a pressed button in Bootstrap
- How to make a Button Hover to change the Background Color in Tkinter?
- Add a gray background color to the active link in a default Bootstrap navbar
- Add a background color to the active list item in a Bootstrap list group
- Add a background color to the form input with CSS
- Add a blue background color to an element to set key stuff with Bootstrap
- Add a green background color to an element to set positive action with Bootstrap
- Add a yellow background color to an element to set warning action with Bootstrap
- Add a red background color to an element to set danger action with Bootstrap
- Add information to the table row with Bootstrap
- How to change header background color of a table in Java
Advertisements