Html Resize Image Fit Table Cell. At that point the background image of the cell must also resize. Looking through the code i wonder if it is possible to change the javascript to cause the image to resize to the edge of a cell.
If you set both to 100 the image will be stretched. Now i have a rather large image in a combined cell that is supposed to span 30 of the whole table or 2 cells of 15 each from a different row using colspan 2. To auto resize image using css use the below css code.
85 if you want the cells to resize depending on the content then you must not specify a width to the table the rows or the cells.
Var modx image x cellwidth. What i tried to do was set the max width for images outside of the table to be 100 but images inside table cell will have the width of the td. Now i have a rather large image in a combined cell that is supposed to span 30 of the whole table or 2 cells of 15 each from a different row using colspan 2. Var mody image y cellheight.