Within the table, I have <td>
elements structured like this:
<tr>
<td>
<p class="tableText">Lengthy random text..........</p>
<img src="www.imageurl.com/img.png" width="33vw">
</td>
<td>
<p class="tableText">Lengthy random text..........</p>
<img src="www.imageurl.com/img.png" width="33vw">
</td>
</tr>
I am seeking a solution where the width of each <td>
matches the image's width, causing the text to wrap once it reaches the image's width limit. Currently, the text just runs on beyond the image.
Any recommendations using JS/JQuery, HTML, or CSS to address this issue? (preferably html/css)