vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Background image (https://vborg.vbsupport.ru/showthread.php?t=220160)

crazymilk 08-04-2009 09:18 AM

Background image
 
How do i stop the background image from repeating?
Basicly i want the background image to stay still when i scroll down the forums.
Thanks in advance for your help

lasjaakon 08-04-2009 10:49 AM

I would really like to know this too, if anyone have a clue please tell us:)

Xtrato 08-04-2009 12:50 PM

do you mean from Repeating or just STATIC , as in ............ ALWAYS There? there are a couple of ways..

example : first you create a body class....

Code:

body#mybg {
background-attachment:fixed;
background-position:center top;  (((( here you specify where you want your bg , center , left , right etc..))))
}

then in your <body> tag ( in the commun templates ) , you add something like ...


Code:

<body style="background-image: url(pathtoyourimg/img.jpg);"  id="mybg">
that should work..

crazymilk 08-05-2009 05:08 AM

Thanks i will try this when i get home from work cheers

crazymilk 08-15-2009 08:06 AM

first question is where do i create this body class?

vB Tree 08-15-2009 01:43 PM

Go to AdminCP > Styles & Templates > All Style Options

Near the bottom, there is a section titled "Additional CSS Definitions"

You can add any CSS to this area.

Hope this helps.

metalguy639 08-18-2009 03:51 AM

Quote:

Originally Posted by vB Tree (Post 1867918)
Go to AdminCP > Styles & Templates > All Style Options

Near the bottom, there is a section titled "Additional CSS Definitions"

You can add any CSS to this area.

Hope this helps.

Actually if you are putting a fixed background on the entire site you need only put the background css in the top Page Body area box to the left. No need to create extra tags. divs etc.

Open your css of your style and scroll to where you see "Body (Customized in this Style)" it will be the first box that you see for the css definitions. Now in the box that says "Extra CSS Attributes" place the background code you want to use like this:

Code:

background-image: url(images/background.jpg);
background-attachment:fixed;

Be sure to change the images/background.jpg to your correct path where your image for your background was uploaded & give the correct file name for the background. You may have to use a full URL it would look something like this:

Code:

background-image: url(http://www.yoursite.com/images/background.jpg);
background-attachment:fixed;

just be sure that you use the proper pathway & file name and it should work just fine. Be sure to click the "save" button after making the edit.


All times are GMT. The time now is 03:42 AM.

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.01975 seconds
  • Memory Usage 1,724KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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