Actually, its not a big thing in asp. It's a big thing in html. Html
can automatically resize an image - just not a background image. It
will attempt to tile a background image if the container is larger than
the image.
One way around this is to use a background image that is larger than
any likely screen size you may encounter. For backgrounds that may need
to expand in width, this usually means an image that is 2048 pixels
wide. The downside of this is the background image wont shrink to
scale. If the html container is less than the width of the background
image, the image gets trimmed - not shrunk.
In order to have a background image that scales as it's container changes size, you need to use css.
So the work comes down to...
- Figure out some css that can scale a background image in an html container and create a new css class name for it.
- Test the css. First with a background for a <td> (table
cell). If that doesn't work, test some html using a <div> within
the <td> with the new css class being assigned to the div.
- Change the asp code to write different html specifying the new css class but only for those table cells you want.
Using asp to write different html is the easy part. Using css to
overcome the flaws in html handling of background images, and then
testing new html necessary to make it work, is the hard part.