|
Posted by Els on 10/06/28 11:44
Maxi wrote:
> I have a 30X16 cells table in my html page. Table height and width are
> set to 100%. I have set size of every cell inside the table to 24
> pixel.
Contradicting on any other window width than 30 x 24 = 720pixels.
> When I open the html page in maximize state in either resolution 800 X
> 600 or 1152 X 864 it takes up the entire explorer size.
Because you set width to 100%.
> In screen resolution 800 X 600, if I insert a pictures of 24 X 24 pixel
> in the cells it takes up the entire cell size (ideally it should as the
> cell size is also 24 X 24 pixel) and If I change the screen resolution
> to 1152 X 864 the picture is there but it does not take up the entire
> cell size. Little bit of surrounding area is visible.
Of course. You told the table to take up the entire width available.
on 1152px width, this is 1152:30=38.4 pixels per cell. Wider than
24px.
> I know the reason, when you change the screen resolution, it has more
> pixels to display hence the problem.
So you understood that then :-)
> What I want to know is, if I use pictures of 50 X 50 pixels into those
> tiny 24 X 24 pixel cells, can id grow and shrink automatically
> detecting the screen resolution?
No, it will be minimum 30x50=1500px wide, and maximum whatever wider
window you have.
> Note:
> 1. I want each cell size to be 24 X 24 pixels. I Cannot modify this
> requirement.
Then you should not put 50x50px images in them.
> 2. I want the table height and width set to 100%. Cannot modify this
> either.
Then you shouldn't want the cells to be only 24px wide.
> Is there any way out? I hope I have explained my problem properly.
AFAICS you've only explained that you want something impossible.
Reading between the lines, I'm suspecting you might want to have
*background* images in the table cells, which don't have to be
entirely visible, depending on the size of the cell?
Or are you trying to resize images in the browser?
--
Els http://locusmeus.com/
Now playing: Emerson, Lake & Palmer - Still... You Turn Me On
[Back to original message]
|