Looking to create a responsive table? I've got my table ready for desktop view, but now I want it to display properly on smartphones too.
Here's how my table looks on the website:
https://i.sstatic.net/zMXQo.png
and here's the code I'm using:
main.html
<table class="table">
<thead>
<tr class="table-dark">
<th></th>
<th>Title</th>
<th>Name2</th>
<th>Name3</th>
<th>Name4</th>
<th>Name5</th>
<th>Name6</th>
<th>Rating</th>
<th>Button</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<img id="brandimg" alt="" src="">
</td>
<td><a href=""></a></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>
<span class="fa fa-star"></span>
<span class="fa fa-star"></span>
<span class="fa fa-star"></span>
<span class="fa fa-star"></span>
<span class="fa fa-star"></span>
</td>
<td>
<button type="submit" class="btn btn-info">Add</button>
</td>
</tr>
</tbody>
</table>
I need help making this table responsive for smartphones using Bootstrap 4 and CSS. Any tips?