Paul Ryan
Paul Ryan

Reputation: 13

HTML CSS Background-Color

http://paulsfiles.vacau.com/

I'm trying to add a background-color to #maintext but it isn't showing up. The body image seems to be over-riding the #maintext, even though #maintext is more specific.

Here's how I'm trying to lay it out.

http://i.imgur.com/LIrsf.jpg

The logical order I'm going for is the nav within the header, and the main text before the images. It's a fixed width site as well.

jsFiddle

Upvotes: 1

Views: 597

Answers (2)

Robin Papa
Robin Papa

Reputation: 180

Didn't you use the same color code #6E6E6E for #maintext and #wrapper?

Works fine for me if I change the color for #maintext. Hope that helps? Otherwise please come back to me :)

Upvotes: 3

Maroshii
Maroshii

Reputation: 4017

In styles.css line:115 you have this:

#maintext {
  float: right;
  width: 570px;
  background-color: #6E6E6E;
  padding: 20px;
}

That background-color happens to be the same one as the #wrapper. #maintext is not being overridden, at least not in the link you posted

Upvotes: 0

Related Questions