Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: RebelRose - toukokuu 15, 2006, 05:03:25 IP

Otsikko: putting a background picture behind forum
Kirjoitti: RebelRose - toukokuu 15, 2006, 05:03:25 IP
I would like to put a background picture behind the forum, is this possible and if so how do I do it.

I am using the latest version of smf with the default theme.
Otsikko: Re: putting a background picture behind forum
Kirjoitti: Deaks - toukokuu 15, 2006, 06:00:01 IP
open your style.css and look for

[code]/* The main body of the entire forum. */
body
{
background-color: #E5E5E8;
margin: 0px;
padding: 12px 30px 4px 30px;
}


and add

background-image: url(images/??);


so it looks like

body
{
        background-image: url(images/??);
background-color: #E5E5E8;
margin: 0px;
padding: 12px 30px 4px 30px;
}


make sure te image is in the themes images directory and where i have the ??  change that to the image name and extensions (.jpg .gif  etc)[/code]
Otsikko: Re: putting a background picture behind forum
Kirjoitti: RebelRose - toukokuu 15, 2006, 06:16:57 IP
Thank you so much, worked like a charm. I was a bit worried because I am still very new to code and php, all that stuff.



Thank You
Otsikko: Re: putting a background picture behind forum
Kirjoitti: SOcRatEs120 - toukokuu 17, 2006, 03:03:43 AP
It did for me as well. Thank you! ;)
Otsikko: Re: putting a background picture behind forum
Kirjoitti: Deaks - toukokuu 17, 2006, 03:08:16 AP
You are both welcome
Otsikko: Re: putting a background picture behind forum
Kirjoitti: SOcRatEs120 - toukokuu 17, 2006, 03:26:24 AP
Lainaus käyttäjältä: SOcRatEs120 - toukokuu 17, 2006, 03:03:43 AP
It did for me as well. Thank you! ;)

Hmmmm?
I spoke/typed too soon.
I'm using smFox theme, which has an entry just like you show above.
I modded code correctly becuase it worked for forum default theme.
Now looking at this textarea I'm posting in, the smFox does not have
the light blue margins. I'm think smFox has a span feature some where.
I'll go to his site to see.
I do know this works!
Forgive me for being new to css.