PDA

View Full Version : Using a background image in the Page Background


Warlord
12-13-2008, 07:52 AM
In the Admin CP under the Style Manager -- Skin you want to edit --> Main CSS, I'm trying to use an image for the Page Background.

I added the following CSS to the Extra CSS Attributes but haven't noticed any changes.

{
background-image: url('http://www.projectfanboy.com/vb/images/skins/superman_bg.jpg');
background-attachment:
fixed
}

Is there something wrong with my code?

Dismounted
12-13-2008, 08:41 AM
That is not valid CSS. You have opening and closing brackets, but you do not specify any tags to apply it to. You are most likely looking for this:
body {
background-image: url('http://www.projectfanboy.com/vb/images/skins/superman_bg.jpg');
background-attachment: fixed;
}

Warlord
12-13-2008, 01:02 PM
Actually I was just inserting the code in the little box next to the Standard CSS Attributes under Page Background but that didn't work either. :(

Then I noticed that the css selector was called .page so I tried adding the following code to the Additional CSS Options all the way at the bottom of the screen but it didn't work either.

.page
{
background-image: url('http://www.projectfanboy.com/vb/images/skins/superman_bg.jpg');
background-attachment:
fixed;
}

What am I doing wrong?

Thelonius Beck
12-13-2008, 08:35 PM
Actually I was just inserting the code in the little box next to the Standard CSS Attributes under Page Background but that didn't work either. :(

Then I noticed that the css selector was called .page so I tried adding the following code to the Additional CSS Options all the way at the bottom of the screen but it didn't work either.

.page
{
background-image: url('http://www.projectfanboy.com/vb/images/skins/superman_bg.jpg');
background-attachment:
fixed;
}What am I doing wrong?

Your URL is invalid. Therefore, no image will be displayed.
Try it like this.
.page
{
background-image: url('http://www.projectfanboy.com/images/skins/superman_bg.jpg');
background-attachment:
fixed;
}

Warlord
12-14-2008, 07:46 PM
Wow, I'm an idiot. LOL, Thanks. :)