rlemon
07-12-2005, 05:23 PM
I have a div tag that holds images (for a image gallery)
After the 'next' button is selected the background image of the div tag is changed to the previous image and a new image is 'faded' overtop of it (give a nice fade effect)
the only problem is, when i set the new background image is does not 'fill' the div tag. instead it is scalled to fit (height, or width depending on the image dimensions)
does anyone know how to set a background image for a div tag and make it stretch to fit?
After the 'next' button is selected the background image of the div tag is changed to the previous image and a new image is 'faded' overtop of it (give a nice fade effect)
the only problem is, when i set the new background image is does not 'fill' the div tag. instead it is scalled to fit (height, or width depending on the image dimensions)
does anyone know how to set a background image for a div tag and make it stretch to fit?