Anyone able to advise me on changing a background color?

Discussion in 'CSS' started by jg123, Jan 21, 2007.

  1. #1
    I don't know much about CSS but I understand I can change one code and it alters the way the background on the entire site looks. I would like to do that on my new blog topSEOnews.com, I want to change the green to a sort of greyish. Can anyone tell me how?

    I am offering a free permanent feature link in my PR5 directory to the first person that can help me :)

    thanks
     
    jg123, Jan 21, 2007 IP
  2. jared

    jared Peon

    Messages:
    231
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You style.css contains these lines

    
    body{	
    	font-size:11px;
    	font-family:Tahoma, Arial;
    	padding:0px 0px 0px 0px; 
    	margin:0px 0px 0px 0px; 
    	color:#262626;
    [B]	background-image:url(images/fon.jpg);[/B]
    	background-repeat:repeat;
    	background-position:center top;
    }
    
    .main_bg{	
    [B]	background-image:url(images/fon.jpg);[/B]
    	background-repeat:repeat;
    	background-position:center top;
    }
    
    
    Code (markup):
    The bold lines are defining the background of your website.
    If you want to change your background to a solid color you should use

    
    background: #CCCCCC;
    
    //where 'CCCCCC' is the color you want as your background. CCCCCC is a very light grey.
    
    Code (markup):
    if you would like to change it to a different image, just leave the line and change 'fon.jpg' tp the name of you image.

    A little bit more in depth look at CSS backgrounds: http://www.tizag.com/cssT/background.php

    cheers
     
    jared, Jan 21, 2007 IP
    jg123 likes this.
  3. audax

    audax Peon

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can also condense your background tag to something like this:

    background: #CCCCCC url(images/fon.jpg) repeat center top;
    Code (markup):
     
    audax, Jan 21, 2007 IP