The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help with background
I have created quite a few custom pages, but I've got a problem.
This is what I use: $stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude </head> <body> $header $navbar $footer </body> </html> I need to know how I can add something like "#dbe9df url(images/mainbg.png)" to the page. I need to know how to add a page background. Can anybody give me a code for this? (For use in template (Style settings is not an option as the image should only be placed on a few pages)) |
#2
|
|||
|
|||
I don't think I'm understanding your point fully, but you basically want assign a certain background image to a certain page, yes? If so, you could add an image class or ID (if a different one in each page) in $header or wherever you want, using CSS.
e.g., in $header: HTML Code:
<img src="spacer.gif" class="whateverClass" alt="" /> OR <img src="spacer.gif" id="whateverID" alt="" /> <!-- CSS in a different file, but using HTML BBCode anyway --> img.whateverClass { background-image:url(pathtoimage); background-repeat:none; } OR img#whateverClass { background-image:url(pathtoimage); background-repeat:none; } |
#3
|
|||
|
|||
Try this.
Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude </head> <body style="background:#dbe9df url(images/mainbg.png);"> $header $navbar $footer </body> </html> Code:
<body style="background:#dbe9df url(images/mainbg.png) repeat-x;"> Code:
<body style="background:#dbe9df url(images/mainbg.png) repeat-y;"> Code:
<body style="background:#dbe9df url(images/mainbg.png) repeat;"> |
#4
|
|||
|
|||
Quote:
|
#5
|
|||
|
|||
Check the MainCSS, in the style manager search for "Page Background" and make your changes there... HTH
|
#6
|
|||
|
|||
You don't seem to understand, the settings I have are settings I want to keep, what I want to do is add a different CSS to specific pages.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|