February 12th, 2013, 08:30 PM
How do I keep the image within the table limit?
No idea how to do this but I want to make it so the image is never bigger then the table itself. I don't want it to be resized unless if it's too large. What do I do?
It's for an e-bay template, I think all I can do is work within the body section only.
February 13th, 2013, 04:53 AM
Give you image a CSS style of 'width: 100%'. Or any other percent value.
By setting that style on the image you are saying "make it 100% width of it's container" (container being your <td> element), so it should not get larger than that.
February 13th, 2013, 05:51 AM
No, this will resize the image in any case (which is not what he wants).
Originally Posted by Nanomech
Use max-width and max-height.