I have a 5-column table that is displayed correctly in a desktop browser.
In a mobile browser, it makes the page too wide, and adds a horizontal scrollbar which I don't want.
Is there a media query CSS rule that could help to split this table into 3 columns / 2 columns stacked vertically instead of 5 columns?
Exemple: on mobile devices, insead of:
A B C D E
aa bb cc dd ee
ff gg hh ii jj
it should be
A B C
aa bb cc
ff gg hh
D E
dd ee
ii jj
<table>
<tbody>
<tr>
<th scope="col"><strong>A</strong></th>
<th scope="col"><strong>B</strong></th>
<th scope="col"><strong>C</strong></th>
<th scope="col"><strong>D</strong></th>
<th scope="col"><strong>E</strong></th>
</tr>
<tr><td>aa</td><td>bb</td><td>cc</td><td>dd</td><td>ee</td></tr>
<tr><td>ff</td><td>gg</td><td>hh</td><td>ii</td><td>jj</td></tr>
<tr><td>ff</td><td>gg</td><td>hh</td><td>ii</td><td>jj</td></tr>
</tbody>
</table>