Support » Themes and Templates » Changing the background color.

  • Resolved FlashSoup

    (@flashsoup)


    Hi,

    I’m trying to change my site so that instead of having an all-white page, the posts and sidebar are white and the background is black. (So that it looks more like this.)

    I’m new to php and css and would appreciate a shove in the right direction.

    Thanks everyone.

    Jason Whiting

Viewing 9 replies - 1 through 9 (of 9 total)
  • just look for “background” in your style.css, change the “color” argument and see what happens use “reload” to see the page again and turn off the cache plugin should you have any, while working).

    Yeah, this doesn’t work. Whole page turns black.

    http://wordpress.org/support/topic/171214?replies=6

    Just compare the files of the themes that I linked to in the previous threads. You’ll find them to be very different. It’s much easier to start with a theme that has the basics to your liking. Colours are much easier to change than the layout of a theme.

    Hi Gangleri,

    Like I already said in that previous post, I’ve spent a lot of time adjusting my current theme and I’m going to stick with it.

    I understand your opinion but it doesn’t solve my problem. That’s why I reposted.

    Thanks,

    Jason

    Try this:

    body {
    	background-image: url("images/bg.gif");
    	background-repeat: repeat-x;
            background-color: #000;
    	padding: 0px;
    	margin: 0px;
    	font-family: Arial;
    	font-size: 12px;
    }
    
    #mainbox {
            background-color: #fff;
    	margin: 0px auto;
    	width: 775px;
    }

    If you don’t want the top graphic over the entire width of the window,
    Like this:

    body {
            background-color: #000;
    	padding: 0px;
    	margin: 0px;
    	font-family: Arial;
    	font-size: 12px;
    }
    
    #mainbox {
     	background-image: url("images/bg.gif");
    	background-repeat: repeat-x;
            background-color: #fff;
    	margin: 0px auto;
    	width: 775px;
    }

    Thanks jberghem. I’ll give it a try.

    Excellent!

    Thanks so much. That definitely changes the colors on the sides. Now that I know that it’s possible I think I’ll be off to learn a whole lot more about margins and padding…

    Thanks again.

    J. Whiting

    If you want to learn more about CSS and XHTML, how to do it the right way instead of the looks alright way? Then follow Patrick Griffiths’ tutorials on HTML Dog.Com I haven’t seen a better and easier way to learn.

    Thanks for the link. I think I’ll be living there for a bit.

    j.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Changing the background color.’ is closed to new replies.