Using Bootstrap, how do you color individual table rows or cells?
Experience Level: Junior
Tags: Bootstrap 4
Answer
In order to create a table with individually colored rows or cells, use standard html tags <table>
, <tr>
, <th>
and <td>
. Then add a class table-primary
to the <tr>
tag or <td>
tag.
Related Bootstrap job interview questions
Using Bootstrap, how do you make a table responsive so that it is accessible on mobile devices?
Bootstrap 4 JuniorHow do you make a small/compact table using Bootstrap?
Bootstrap 4 JuniorUsing Bootstrap, how do you make a table that highlights a row when you move a mouse cursor over it?
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 Junior