XMB Forum Software
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: [New] Fixed background
candle
New Poster
**




Posts: 1
Registered: 6-25-2014
Member Is Offline


[*] posted on 6-26-2014 at 10:27 PM
[New] Fixed background


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.
View user's profile View All Posts By User
Mouser
XMB Contributor
********




Posts: 202
Registered: 4-14-2008
Member Is Offline

Mood: Christmasy. Yes, in September.

[*] posted on 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.




View user's profile View All Posts By User

  Go To Top

Powered by XMB 1.9.12 (Debug Mode)
XMB Forum Software © 2001-2024 The XMB Group
[Queries: 16] [PHP: 17.2% - SQL: 82.8%]