2 replies [Last post]
anotherhoward
anotherhoward's picture
Offline
Enthusiast
Heartland of South Jersey
Last seen: 13 years 19 weeks ago
Heartland of South Jersey
Timezone: GMT-4
Joined: 2006-11-16
Posts: 86
Points: 0

I'm expecting it to be my background color: #993333.

What am I doing wrong?

Here is my validated XHTML:


Here is my validated CSS:

* { margin: 0; padding: 0; }

#body {
font-family: Verdana, Helvetica, Arial, sans-serif;
text-align: center;
background-color: #993333;
}

#wrapper {
margin: 10px 50px;
background-color: #fff;
}

#header {
background-image: url(images/Pen_in_hand.jpg);
width: 180px;
height: 148px;
background-repeat: no-repeat;
}

Web pages work better with CSS

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 47 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

#body {font-family: Verdana,

#body { font-family: Verdana, Helvetica, Arial, sans-serif; text-align: center; background-color: #993333; }

Try not making the body element an ID!

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

anotherhoward
anotherhoward's picture
Offline
Enthusiast
Heartland of South Jersey
Last seen: 13 years 19 weeks ago
Heartland of South Jersey
Timezone: GMT-4
Joined: 2006-11-16
Posts: 86
Points: 0

Thanks Hugo

Sometimes what's most obvious is the hardest to see.

Web pages work better with CSS