Click to See Complete Forum and Search --> : some div help


keko2005
11-21-2006, 04:33 PM
hey guys. i have a div as a main container to store all my other content. this container i would like to have a background. i am using the width:80%; when the browser gets resized the div resizes as well but not the back ground image. is there a way to get the background image to resize with it?

22Pixels
11-21-2006, 08:19 PM
You could probably accomplish this through layers and z-index's.

But the easiest way to handle this would be to make the background repeat, or have it centered. This way it looks good on all widths.

ray326
11-21-2006, 11:53 PM
It's usually best to design your background such that the background color takes over for the situation where the image is too small.