Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: natasha on January 29, 2007, 08:11:05 PM

Title: Background Colour on Boards
Post by: natasha on January 29, 2007, 08:11:05 PM
SMF Version: SMF 1.1.1
For those of you who have a coloured background on your message boards, can you tell me how you did that? I have changed all the colours of my message board (through the style sheet) can't seem to find or figure out how to change the background. Maybe I need to create something (new line) within my style sheet? I see that the SMF boards have a slight blue background. If I do need to create something, can you tell me what it is or how I write it?

Thanks!
Title: Re: Background Colour on Boards
Post by: KGIII on January 30, 2007, 03:07:42 PM
In my case it is:


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


If you have a copy of your stylesheet someone can likely edit it for you if you can't figure it out with the above example.
Title: Re: Background Colour on Boards
Post by: natasha on January 30, 2007, 10:44:43 PM
Quote from: KGIII on January 30, 2007, 03:07:42 PM
In my case it is:


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


If you have a copy of your stylesheet someone can likely edit it for you if you can't figure it out with the above example.


Could I not just copy and paste the one you posted onto my style sheet? I could just change the colour code to the one I want?
Title: Re: Background Colour on Boards
Post by: SleePy on January 30, 2007, 11:47:23 PM
natasha,

Look for that bit of code in your style.css

then change:
background-color: #F6F6F6;

to the color you want it to be. google around for hex color values if you want to continue using those
Title: Re: Background Colour on Boards
Post by: KGIII on January 31, 2007, 07:12:02 AM
Quote from: SleePy on January 30, 2007, 11:47:23 PM
google around for hex color values if you want to continue using those

Here's a handy free tool for such:
http://prall.net/colorcop/features
Title: Re: Background Colour on Boards
Post by: natasha on January 31, 2007, 10:31:54 PM
I don't have that code in my style sheet. I copied yours into mine and changed the colour, but it made all my tables white. ???
Title: Re: Background Colour on Boards
Post by: SleePy on January 31, 2007, 11:04:18 PM
natasha,

Maybe I missed it but checked your forum and saw you where using classic theme. Should of let us know that. We where looking at the default theme

If you add this to the start of your style.css and edit it to match the colors you want it should work


/* The main body of the entire forum. */
body
{
background-color: #F6F6F6;
}


Title: Re: Background Colour on Boards
Post by: natasha on February 03, 2007, 12:47:03 PM
Sorry didn't realize myself which theme I was using or that I should have mentioned it. I used your code and it worked great, thanks so much!

Problem solved!

Title: Re: Background Colour on Boards
Post by: KGIII on February 03, 2007, 12:52:59 PM
Thanks for letting us know that you got it all figured out.