Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Frozen Background Wallpaper for SMF Forum ?

Aloittaja nuri552, tammikuu 02, 2012, 06:13:56 IP

« edellinen - seuraava »

nuri552

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 :



The Craw

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.

nuri552


The Craw


Advertisement: