I have a simple bootstrap table(as in the code below). I want that in my mobile view each row entry should be displayed separately inside a box or a card. For example, First card -
First: Mark
Last : Otto
Handle: @mdo
Second card-
First:Jacob
Last:Thornton
Handle:@fat
and so on. Is it possible to manipulate this design without having to write separate HTML for mobile view? Either through css or javascript? ( I am using bootstrap 4)
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">First</th>
<th scope="col">Last</th>
<th scope="col">Handle</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<th scope="row">3</th>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>