Ensuring my websites have a consistent look across various devices is a top priority for me.
I currently have a table that is displayed like this: https://i.sstatic.net/a91LL.png
Is there a way to modify this table so that when viewed on mobile, the <td>
within a <tr>
will be arranged in columns with the corresponding <th>
adjacent to each table data like shown here:
https://i.sstatic.net/JE3oA.png
The website I am working on is built using React, so if there is a method of achieving this in React that I am not familiar with, I would love to explore it.