In my API response, I am receiving images of various sizes. To display these images on my HTML page, I have created a table containing 4 images. To ensure responsiveness, I have set the width of the table to 100%, each row (tr) to 100%, each cell (td) to 25%, and each image to 100%.
<table>
<tr>
<td><img/></td>
<td><img/></td>
<td>>img/></td>
<td><img/></td>
</tr>
</table>
However, when I resize the window, the width of the cells (td) responds but the height remains constant. How can I make the height of the cells (and therefore the height of the images) responsive as well?