XMB Forum Software

[New] Fixed background

candle - 6-26-2014 at 10:27 PM

Full Board URL: forum.sioncraft.net
XMB Version: 1.9.11

How do I make a background image fixed?

If someone could tell me the format to use, that would be great.

Thank you.

Mouser - 6-30-2014 at 05:09 PM

Ok. Lets do this with CSS.


Upload a file (with your FTP client) called "theme.css" to your "Image Directory".

In that css file, add something like this;
Code:
body{ background:#1b1309 url(http://www.myforums.net/images/theme33/bg.jpg) top no-repeat; background-attachment:fixed; }


This will add :
a) The following background color to your website #1b1309
b) The following background image to your website http://www.myforums.net/images/theme33/bg.jpg
c) Will put the image at the top, without repeating it.


Read this page, it will explain a lot.
http://www.w3schools.com/css/css_background.asp



The "Image Directory" you can find here;
Administration Panel --> Themes --> Details

You should have 1 Image Directory for 1 Theme.



Whatever you add here, doesn't matter anymore. As the CSS file should overwrite it "Background (Enter a hex code or an image name):".
I'd just use the same color as in my example above.