PDA

View Full Version : How to fix background image


Goonie
10-12-2010, 04:59 PM
I'm having some trouble trying to make my background image fixed.

I found this: http://www.vbenhanced.com/forums/hints-and-tips/428-making-a-fixed-image-background-in-vbulletin-4-a.html

I did exactly what it said. I found body_background in StyleVars and I added 'url(images/ReptileGreen/elements/background.jpg) fixed center' to Background Image.
It didn't fix the forums background image but did add an extra layer of background which became fixed (see attached image - the part I have circled wasn't there until I added the image details in the StyleVars and that circled part is fixed, which isn't what I wanted).

How do I make it so the WHOLE background becomes fixed and I don't get an extra layer of background.

I hope this makes sense. Thanks very much.

Lynne
10-12-2010, 06:36 PM
You probably wanted to use doc_background instead of body_background

Goonie
10-12-2010, 06:58 PM
Should I use url(path-to-image) fixed center like it says in the link I provided, because when I do that the background goes white and there's no image. But if I take the 'fixed center' out then the image goes back to how it is now - not fixed.

--------------- Added 1286913650 at 1286913650 ---------------

Nevermind. I did it.
I just added 'fixed' after the image url. Not the 'center' bit. All working good now.
Thanks for your help Lynne. :)

g10net
05-03-2013, 07:19 PM
great