vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   2 images to use as a background (https://vborg.vbsupport.ru/showthread.php?t=115125)

scsa20 05-09-2006 04:34 AM

2 images to use as a background
 
Hey all, I'm trying to get 2 images to be used as the background of my site but it's not going too hot. I've tried doing what http://www.w3.org/TR/css3-background/#layering said but it's just not showing up, here's what the code looks like (coping and pasting from the source on the actual page):

Code:

<!--
/* vBulletin 3 CSS For Style 'test' (styleid: 2) */
body
{
        background: #FFFFFF;
        color: #000000;
        font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
        margin: 5px 10px 10px 10px;
        padding: 0px;
        background-image: url(/images/test.gif), url(/images/test2.gif);
        background-attachment: fixed, fixed;
        background-repeat: no-repeat, no-repeat;
        background-position: left bottom, top right;
}

looking at the code above you see what I've added to the Extra CSS Attributes for the body style.

So what am I doing wrong? Any help would be much appreciate.

Freesteyelz 05-11-2006 04:05 AM

I haven't tested this recently but the last I remember only Safari supports the layering background image effect.

scsa20 05-11-2006 04:33 AM

greeeeeeeaaaaaat.... does that mean that all the browsers current support CSS2 and Safari is the only one that supports CSS3?

Freesteyelz 05-11-2006 05:59 AM

Not all browsers support CSS2 but as for CSS3 I think so. You may, however, be able to use multiple <div> or <span> tags with each containing a background image with independent values. That'll be interesting.

scsa20 05-11-2006 10:31 PM

Quote:

You may, however, be able to use multiple <div> or <span> tags with each containing a background image with independent values.
yea... I was thinking about it but hate to do it.... if I do go on and try it, does the div tag go between the header and the main table and then one at the end in the footer?

Freesteyelz 05-11-2006 11:45 PM

You may need to add the opening <div> or <span> tag(s) in the Header itself, above all HTML code.

scsa20 05-12-2006 01:06 AM

Thanks for the suggestions, I'll give it a try.

edit:

Ok, the way I did it is I added a new CSS entry:

Code:

.extrabg {
background-image: url(/images/test2.gif);
background-attachment: fixed;
background-position: top right;
background-repeat: no-repeat;
}

then, at the top of the header template, I've added:

<div class="extrabg">

then, at the end of the footer template, I've added:

</div>

that seems to work just fine.

Freesteyelz 05-12-2006 03:34 AM

Cool. :)


All times are GMT. The time now is 02:56 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.01786 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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