Title: Background page colour.
Last modified: August 20, 2016

---

# Background page colour.

 *  [FooManChoo](https://wordpress.org/support/users/foomanchoo/)
 * (@foomanchoo)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/background-page-colour/)
 * I am trying to set the background colour for may pages.
 * I have edited the hex code in the style.css to #000000
 * The problem is the background does fill the whole page of that makes sense.
 * You can see what I mean here….
 * [http://www.crewecomputerservices.co.uk/](http://www.crewecomputerservices.co.uk/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [peredur](https://wordpress.org/support/users/peredur/)
 * (@peredur)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/background-page-colour/#post-2332612)
 * What part of the page do you want to change the background of? The whole body?
   Just the content? The content and the header?
 * Cheers
 * PAE
 *  Thread Starter [FooManChoo](https://wordpress.org/support/users/foomanchoo/)
 * (@foomanchoo)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/background-page-colour/#post-2332621)
 * The white space to the bottom of the page please.
 *  [peredur](https://wordpress.org/support/users/peredur/)
 * (@peredur)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/background-page-colour/#post-2332628)
 * Not easy. What colour do you want it to be?
 * There’s only white space at the bottom, BTW, because your content doesn’t reach
   the bottom of the viewport. There’s a very small (20px) bit of white that shows
   through right at the very bottom (when I view it on my mobile phone in landscape)
   because there’s a 20px bottom margin on the `#page` div, but it’s easy to get
   rid of that (preferably in a child theme stylesheet – I’ve already spent time
   trying to help somebody out tonight whose customisations were overwritten by 
   a theme upgrade).
 * However, if you want the white background not to show no matter what the height
   of the #page, then it’ll require a bit of work. Mainly, it’ll require setting
   the body background to whatever colour you *do* want to see below the `#page`
   and then wrapping the `#page` in another div to which we can give the white background.
   Or you could use a background image…
 * Cheers
 * PAE
 *  Thread Starter [FooManChoo](https://wordpress.org/support/users/foomanchoo/)
 * (@foomanchoo)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/background-page-colour/#post-2332630)
 * I want it all black if possible.
 *  [peredur](https://wordpress.org/support/users/peredur/)
 * (@peredur)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/background-page-colour/#post-2332637)
 * Oh, that’s easy!
 *     ```
       body {
        background-color: #000;
       }
       ```
   
 * (In your child theme’s style sheet)
 * Cheers
 * PAE
 *  Thread Starter [FooManChoo](https://wordpress.org/support/users/foomanchoo/)
 * (@foomanchoo)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/background-page-colour/#post-2332643)
 * Thanks very much!
 * Child theme style sheet?!?!
 *  Thread Starter [FooManChoo](https://wordpress.org/support/users/foomanchoo/)
 * (@foomanchoo)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/background-page-colour/#post-2332644)
 * Ahh style.css
 * Got it. 😀
 *  [peredur](https://wordpress.org/support/users/peredur/)
 * (@peredur)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/background-page-colour/#post-2332646)
 * Child-theme-directory/style.css
 * Not
 * theme-directory/style.css
 * [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
 * It really can be a bad idea to alter your theme’s style sheet. Updates to the
   theme can overwrite your changes.
 * Cheers
 * PAE

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Background page colour.’ is closed to new replies.

 * 8 replies
 * 2 participants
 * Last reply from: [peredur](https://wordpress.org/support/users/peredur/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/background-page-colour/#post-2332646)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
