|
|||||||
| Graphics Discussion and technical support for creating and editing graphics for the web. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
||||
|
||||
|
Re: HELP>>Resize Image within table
Quote:
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. |
|
#3
|
||||
|
||||
|
Actually, you can.
<img src="your.gif" height="100%" width="100%"> will fill the cell that it is in.
__________________
Personal website http://www.ryanbrill.com/ Business website: http://www.infinitywebdesign.com/ TypeSpace http://www.typespace.org/ I reject your reality and substitute it with my own! |
|
#4
|
||||
|
||||
|
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?
|
|
#5
|
|||
|
|||
|
Yeah. That will override the images set sizes unless the table is the size of the image. Then everything should be fine.
|
|
#6
|
||||
|
||||
|
Yes, but it should work to only set the height, something like <img src="your.gif" height="100%">. This should keep it proportionally correct.
__________________
Personal website http://www.ryanbrill.com/ Business website: http://www.infinitywebdesign.com/ TypeSpace http://www.typespace.org/ I reject your reality and substitute it with my own! |
|
#7
|
||||
|
||||
|
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. Last edited by jdavia; 02-15-2003 at 02:36 PM. |
|
#8
|
||||
|
||||
|
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%.
__________________
Personal website http://www.ryanbrill.com/ Business website: http://www.infinitywebdesign.com/ TypeSpace http://www.typespace.org/ I reject your reality and substitute it with my own! |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|