4 replies [Last post]
doucie
doucie's picture
Offline
newbie
Last seen: 10 years 3 days ago
Joined: 2007-07-01
Posts: 3
Points: 2

Why won't this colour the background? The text has been coloured but the background hasn't!

body {
margin-top:25px;
margin-left: 0;
margin-right: 0;
padding :0;
background-color: 99CCFF;
color: #FF0000;
}

Smee
Smee's picture
Offline
Elder
Adelaide, Oz
Last seen: 2 years 25 weeks ago
Adelaide, Oz
Timezone: GMT+9.5
Joined: 2007-06-10
Posts: 1596
Points: 340

Simply comparing the way you

Simply comparing the way you have specified the two colours shows you're missing a #...????

Quote:
background-color: 99CCFF;
color: #FF0000;

Try it, you never know. Smile

Mods and gurus – THANK YOU!
For your time, knowledge and experience so willingly and generously given.
Please come back tomorrow and sort us all out again Smile

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 1 year 17 weeks ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9668
Points: 801

Validation would have picked

Validation would have picked that up, you know Wink

Verschwindende wrote:
  • CSS doesn't make pies

doucie
doucie's picture
Offline
newbie
Last seen: 10 years 3 days ago
Joined: 2007-07-01
Posts: 3
Points: 2

What a complete doughnut I

What a complete doughnut I am. Thanks guys.

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

Ring or Jam?

Ring or Jam?

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