While a lot of layout in a website can be done with your grids, you don’t want to necessarily use grids to display tabular data.
Therefore, you want to use a table. Bootstrap has given us several CSS classes that we can use to easier layout our tables.
For basic styling, you will only want to add the table class to your table tag. Example:
<table class="table"> .... </table>
From here, we can expand what we can do. Such as stripe your data:
<table class="table table-striped"> .... </table>
Note: This will only stripe data rows within the tbody tag.
Want a border around your table and between your cells? Then you will want to use the .table-bordered class.
<table class="table table-bordered"> .... </table>
If you want to help users follow which row they are over, use the .table-hover class. This will put a light background color for any row that you are hovering over.
<table class="table table-hover"> ... </table>
If you feel you have too much space between two or more cells/rows, you can use .table-condensed to shrink the padding around the cells. This will cut the padding down by about half.
<table class="table table-condensed"> ... </table>
Now, if you want to have a responsive table, then you need to wrap your table into a div, which should have a class of .table-responsive. What this will do is make the table scroll if the screen space becomes too small.
NOTE: This class goes on the div wrapping around the table, not the table itself.
<div class="table-responsive"> <table class="table"> ... </table> </div>
Or watch on YouTube.