My table contains a mix of images and text, with the images set to a specific width using the code snippet below:
<img src="" width="250">
When certain large images are dynamically added to the table during runtime using jQuery, the table's width can exceed the size of the screen. In my CSS, I have set the table width as value of its container
.
Is there a way to automatically shrink the images so that the table never exceeds its specified pixel width? It is important to note that I do not want to remove the width attribute from the image tags.