I want an image to resize within a table that is set at 100% so that the image is the largest it can be within the table without the horizontal scroll bar activating.
Originally posted by capctycr I want an image to resize within a table that is set at 100% so that the image is the largest it can be within the table without the horizontal scroll bar activating.
I don't think you can get it to re-size. You might have to use pixels in the table as well as for the image.
The reason is that the table set to percents will fill the screen regardless of the resolution the viewers have, while the image size is set to pixels will not.
Make table that is centered say about 800 and the image about 790. that allows for cellpadding. The reason for a centered table is so it wouldn't look one sided in a higher resolution. Center the image for the same reasons too.
I tried a sample. If there is any description under the image it will cause a scroll bar. In other words nothing else can be on the page.
But the image is distorted. So for various screen sizes it would not show the same.
I wasn't saying that it wouldn't distort the image. I was just trying to show that you can specify percentage widths. If you have text under it, try a percentage width like 90%.
Bookmarks