Click to See Complete Forum and Search --> : Resizing Image in Table


Lextar
05-04-2005, 06:57 AM
I'm using php to generate a generic html page.

The page contains a table that is set to a size relative to the window.

I am putting an image into one of the cells, so when the image is smaller than the cell, it is fine. But when the image is too large, it ends up destroying the table layout.

Is there a way to dynamically set the image to fit into a table cell without using the SIZE/WIDTH command to set it?

scragar
05-04-2005, 07:18 AM
javascript could get the size of the cell, then adjust the size of the image to reflect that, of course it won't work on all user's computers and I haven't tested my idea yet(or even writen it, but it's an idea)...