capctycr
02-14-2003, 11:43 PM
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.
|
Click to See Complete Forum and Search --> : HELP>>Resize Image within table capctycr 02-14-2003, 11:43 PM 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. jdavia 02-15-2003, 03:55 AM 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. pyro 02-15-2003, 01:07 PM Actually, you can. <img src="your.gif" height="100%" width="100%"> will fill the cell that it is in. jdavia 02-15-2003, 01:58 PM Will that override the set image sizes? If it does, the image will be distorted or stretched one way or the other to fit the screen? Zach Elfers 02-15-2003, 01:59 PM Yeah. That will override the images set sizes unless the table is the size of the image. Then everything should be fine. pyro 02-15-2003, 02:03 PM Yes, but it should work to only set the height, something like <img src="your.gif" height="100%">. This should keep it proportionally correct. jdavia 02-15-2003, 02:27 PM 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. pyro 02-15-2003, 07:04 PM 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%. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |