Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Bigguy - tammikuu 10, 2006, 10:02:49 IP

Otsikko: Help on style sheet for RC2
Kirjoitti: Bigguy - tammikuu 10, 2006, 10:02:49 IP
Would it be hard to change/add a background image to smf RC2  ???

EDIT: If I edit this part of the code in the default themes style sheet:

Lainaa/* The main body of the entire forum. */
body
{
   background-color: white;
   margin: 0px;
   padding: 0px;

were it says background color I would change that to reflect a url to a file (.jpg or .gif) that is in the images directory of the current theme.

If I substitute this line:
Lainaabackground-color: white;

for this:
Lainaabackground-image: url('/smf/Themes/default/images/background.jpg');

will it work ???

NOTE: originally posted here(I didnt know where the right place was,sorry): background (http://www.simplemachines.org/community/index.php?topic=65245.new#new)
Otsikko: Re: Help on style sheet for RC2
Kirjoitti: Bigguy - tammikuu 10, 2006, 10:37:52 IP
Ok thats what I did I downloaded the styles.css file from the default directory in the theme folder and changed the line as above. and it works. Sorry for all this posting.