vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Using a background image in the Page Background (https://vborg.vbsupport.ru/showthread.php?t=198757)

Warlord 12-13-2008 07:52 AM

Using a background image in the Page Background
 
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.

Code:

{
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:
Code:

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.

Code:

.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

Quote:

Originally Posted by Warlord (Post 1684496)
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.

Code:

.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.
Code:

.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. :)


All times are GMT. The time now is 10:24 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00959 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete