Support » Fixing WordPress » Container for content to change the background

  • Resolved yadesuyi


    Hi, I want to be able to change the background color of my site, but there is no div wrapping up the content. As you can see, So I wanted to create a container for the whole content so I can change the background, something like this site,

    Im not exactly sure what codes I have to put in the style.css and index.html to do this, can anyone help me?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Yes, there is a wrapper div on your site (id is #warpper — yes it is misspelled in the theme) — you could change that background to white and then the body div to a color and you’d have the same effect as the site you linked to.

    I put this into the style.css,

    #body {

    To make the background black, however nothing changed in the site

    That’s because body is not an id — it’s a tag — so get rid of the # .

    Oh okay, it worked but it made the whole page black including the content in the wrapper for some reason, which is weird because when I made the background color of the wrapper black it only affected the content section.

    None of that is weird – it’s how CSS works. You need to set the wrapper to white and the body to black.

    Try using Firebug to work with CSS and look at this page for a reference on CSS:

    Nice that is perfect, thank you so much for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Container for content to change the background’ is closed to new replies.