I want the background image on the site I’m working on to move with the main foreground box like on the Pala casino ad. Right now it just doesn’t move at all. How do you set the css background attachment property to “scroll”?
Sorry, I wasn’t very clear, what I mean is when you resize the window by making in larger or smaller with the right corner of the browser, the background for the Pala Casino site moves with the foreground main area, but on my site when you resize the browser window, the background doesnt’ move but the foreground does. I want the background to move also like it’s attached to the foreground, like on the Pala Casino site. thanks,
Ohhhhhhh. We all thought you were talking about scrolling, not resizing.
If you inspect the Pala Casino website with Firebug, you’ll see that there aren’t actually two different backgrounds: it’s all just one image, which is why it doesn’t shift when you resize.
How do they keep the bottom from having a scroll bar? I tried to make the whole thing one background image but a scroll bar shows up at the bottom of the browser.
as far as i know, background imagesdo not resize automatically.So what you are seeing is either not a background image or it’s size is being changed on the fly via javascript (not supported by all browsers). the bottom scrollbar problem is being caused by an element that is wider than the available width of the window