PDA

View Full Version : background colour issue


Jules1777
03-04-2010, 12:15 PM
Hi

The site I am designing is a fixed width site in the centre of the web page of 800px wide x 100% length. All my divs inside this need to have a pale blue background.

Although outside of this 800px site needs to have a darker blue background. I have changed the * css style to have this blue background, but all the text in my divs inside my actual site now has a blue background too, instead of pale blue.

Can anyone clear up what I am doing wrong, or how to get around this problem?

Thanks in advance
jules1777

DWcourse
03-04-2010, 01:39 PM
The * style rule affects everything. You need to put the darker blue backgroun-color in the body style rule.

Jules1777
03-04-2010, 03:28 PM
Thanks, so simple!!