Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: nuri552 - tammikuu 02, 2012, 06:13:56 IP

Otsikko: Frozen Background Wallpaper for SMF Forum ?
Kirjoitti: nuri552 - tammikuu 02, 2012, 06:13:56 IP
Hi, I saw a guide to do this. But I couldn't do it. As the guide says :

Lainaa

1
Open the HTML code of the SMF page. Any HTML editor or text editor can be used.

2
Locate any "<body>" tags near the top of the HTML coding. Remove these tags.

3
Insert the following code into the location of the old "<body>" tags: "<style type="text/css"> body {background-image: URL("/backgrounds/background.gif"); background-repeat: no-repeat; background-attachment: fixed } </style>."

4
Replace "/backgrounds/background.gif" with the location and filename of the desired background. Save the HTML code. The page will now have a frozen background, even when text is scrolled.

Can you help me please ? Thanks , much appreciated.

P.S.

My index.css file :


Otsikko: Re: Frozen Background Wallpaper for SMF Forum ?
Kirjoitti: The Craw - tammikuu 02, 2012, 06:26:20 IP
You shouldn't remove the body tags from the template. That's not necessary to make a fixed background image, and it messes up the page validation. I modified your CSS file to make the background fixed. You can still change the image by finding this code, and changing the url.

background: #E9EEF2 url(http://i.imgur.com/cRrLA.jpg) repeat-y fixed;

Hint: It's near the top, approximately line 36.
Otsikko: Re: Frozen Background Wallpaper for SMF Forum ?
Kirjoitti: nuri552 - tammikuu 02, 2012, 06:52:21 IP
Thank you so much sir ! I did it ! :)
Otsikko: Re: Frozen Background Wallpaper for SMF Forum ?
Kirjoitti: The Craw - tammikuu 03, 2012, 01:38:15 IP
Good, I'm glad it worked for ya.  :)