Start page background color not the same as others

danhaskett / 2013-02-18 10:25:40   

Hello,

I have just uploaded an image to my root page which is here

danhaskett.co.uk/

For some reason the background colour is white, even though all the other pages are a more pale yellow/beige. I've been looking through style.css to try and work out what I need to modify, but can't find it.

If anyone can help that'd be great!

Thanks,

Dan

arsondpi / 2013-02-18 11:18:23   

the fact that you have a background image resets the background color to transparent.
To make sure that it's going to work for all your pages simply add !important next to the background colour in your css

  1. body {
  2.     background-color: #F5F1DF !important;
  3.     font-family: 'WilliamsCaslonText',serif;
  4. }
danhaskett / 2013-02-18 11:31:50   

Hi Arsondpi,

Thanks alot for your advice, that makes a lot of sense.
I've just added the code, but it seems to be having the same problem...do you have any idea why?

Thanks

Dan

danhaskett / 2013-02-18 11:32:54   

I just removed the image now to check and it still has a white background...

danhaskett / 2013-02-18 11:55:26   

Ok I seem to have fixed the problem now. It was to do with a random Image background generator that I still had in my index.php file.

danhaskett / 2013-02-18 11:56:22   

Im not sure how to make this post as resolved...where do I do that?

This thread has been closed, thank you.