This Message Forum is no longer in use

Please use the new Bravenet Help Forums FOUND HERE

General Forum
This Forum is Locked
Author
Comment
Background Colour on CSS

Hi folks
I'm using one of the free web templates and was wondering how I change the background colour of it to black on the stylesheet.
Thanks

Browser: Firefox, IE7

Re: Background Colour on CSS

Just edit the css file in a text editor such as Notepad.

For the syntax see the page that I have linked.

Re: Background Colour on CSS

Thanks Peter.

I'm not sure about CSS though, which one do I change for the main background colour?

Browser: Firefox, IE7

Re: Background Colour on CSS

In the following code:

Code:

body {
background: #C89C52 url(page_bg.jpg) repeat-x;
text-align: center;
font: 11px arial, sans-serif;
color: #E5D19C;
padding: 20px 0 0 0;
}


Change the "background:" attribute. The part after the hash is a color, the url points to an image to use for it. If you don't want a background image and just want a color then remove the url section, and change the color. Black is "#000000".

Browser: Mozilla Firefox 3.6.*

OS: Windows 7

Re: Background Colour on CSS

Thank-you, much appreciated.

Browser: Firefox, IE7