I am using bootstrap and I have a table that I want to try and format different if the screen size XS.
- If the screen size is SM or larger, I want everything on one line.
- If the screen size is XS, I want to have two lines per record.
The HTML below shows how I would format it from the server side if I knew the screen size.
When screen size SM or larger:
<tr>
<td>Description</td>
<td>Code</td>
<td>Category</td>
<td>Price</td>
</tr>
When screen size is XS:
<tr>
<td colspan=3>Description</td>
</tr>
<tr>
<td>Code</td>
<td>Category</td>
<td>Price</td>
</tr>
When the screen size is XS, not everything fits properly on one line and I need to show all the information. Is there a way using the bootstrap css to make this work?