Change background in CSS for Wordpress theme

Discussion in 'CSS' started by pickthebrain, Dec 15, 2006.

  1. #1
    I want to change the background color, the outside of the page, on my wordpress theme. What is the best way to do this in CSS?
     
    pickthebrain, Dec 15, 2006 IP
  2. Amsterdam

    Amsterdam Well-Known Member

    Messages:
    361
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #2
    It depends how your style sheet is set up, but at its most basic it would be something like:-

    body{
    background: yournewcolor;
    }

    Your existing background might be making use of an image though, in which case it would be more like:-

    body{
    background: url(images/bgpic.gif);
    }

    in this case you can either edit the original image or create a completely new one and link to it as in the above example.

    T
     
    Amsterdam, Dec 16, 2006 IP
  3. pickthebrain

    pickthebrain Peon

    Messages:
    7
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the tip. I actually dug in myself and figured out how to do it.
     
    pickthebrain, Dec 19, 2006 IP