Problem Statement
Which approach makes a table responsive on small screens?
Explanation
To make tables responsive, wrap them in a container with overflow-x: auto. This allows horizontal scrolling on smaller screens without breaking the layout.
Code Solution
SolutionRead Only
<div style="overflow-x:auto;">
<table>
<tr><th>Name</th><th>Email</th></tr>
<tr><td>John</td><td>john@example.com</td></tr>
</table>
</div>Practice Sets
This question appears in the following practice sets:
