Using Bootstrap, how do you make a table that highlights a row when you move a mouse cursor over it?
Experience Level: Junior
Tags: Bootstrap 4
Answer
In order to create a table with hoverable rows, use standard html tags <table>
, <tr>
, <th>
and <td>
. Then add a class table table-hover
to the <table>
tag.
Related Bootstrap job interview questions
Using Bootstrap, how do you color individual table rows or cells?
Bootstrap 4 JuniorHow do you make a small/compact table using Bootstrap?
Bootstrap 4 JuniorHow do you make a bordered table using Bootstrap?
Bootstrap 4 JuniorHow do you add zebra-striping and dark style to a table using Bootstrap?
Bootstrap 4 JuniorHow do you add zebra-striping to a table using Bootstrap?
Bootstrap 4 Junior