This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Brandon Pinson
about 11 years

Background color code not working, someone please point out my mistake

Here is my code that isn’t working: (hashtags inserted for clarity, I realize they don’t belong in the code)

<#!DOCTYPE html> <#html> <#head> <#title>Sexy background color! <#body style:”background-color: brown”> <#h3>Favorite Football Teams<#/h3> <#ol style:”background-color: yellow”> <#li>The Hawthorn Football Club<#/li> <#li>San Franscisco 49ers<#/li> <#li>Barcelona FC<#/li> <#/ol> <#/body> <#/html>

Answer 50f575762292665465004285

6 votes

Permalink

You have <#body style:"background-color: brown"> and <#ol style:"background-color: yellow"> . Change the colon after style to an equals sign. It should be:

<body style="background-color: brown">
<ol style="background-color: yellow">
points
Submitted by ccuser
about 11 years

1 comments

Brandon Pinson about 11 years

Thanks a lot. I caught the mistake right after I posted last night haha! But then the site went down or something so I just got back to remove it.

Answer 50fdb11c699bd0027100127c

4 votes

Permalink

my problem is my brown isnt brown!! its like a maroon/ bacon colour!!!!

points
Submitted by DMc_
about 11 years

2 comments

BLiu1 about 11 years

I know, it’s so weird! I think it’s supposed to be like that.

BK about 11 years

I have exactly the same problem in firefox 18.0.01. My suggestion: Change the tutorial to colors which arent near to each other. red is really near to brown. There are many users complaining about that

Answer 50feb4587b7d7a886d0009b5

2 votes

Permalink

Ok, I finally got it to work… put quotes around the “background-color:brown” & “color:brown” sections. You shouldn’t have to do that in real code, but it works for this exercise.

points
Submitted by Rikki Lynn
about 11 years

Answer 50f503a53ea39ecd0f000c31

0 votes

Permalink

my code is…

points
Submitted by conor malcolm
about 11 years

1 comments

Cobar about 11 years

You have to delete the # in the beginning of the body tag.

Answer 50f95cbcc072335887004618

0 votes

Permalink

I am having the same issue. It keeps pushing an error, but there is not one in my code.

points
Submitted by Rikki Lynn
about 11 years

Answer 50fe44d47ac82851430043ec

0 votes

Permalink

Also having the same issue. My code is below with what I believe to be no errors. Feedback appreciated.

points
Submitted by Jared
about 11 years

Answer 50fed5e42ea8e21c5a000144

0 votes

Permalink

Awesome. Thank you!

points
Submitted by Jared
about 11 years

Answer 516ed1f08f1f827ac40005a3

0 votes

Permalink

same problem and i believe my code has

points
Submitted by Muhammad Tello
almost 11 years

Answer 51ca9f7d631fe94c45003419

0 votes

Permalink

This worked for me

points
Submitted by Massimo Pardini
almost 11 years

Answer 51f3762d282ae3cdb1001ae9

0 votes

Permalink

points
Submitted by Nicu00K
over 10 years

1 comments

mduhoux over 10 years

I don’t really understand what I have to change, there’s no “;” in my code

Answer 52111e57548c357c32000c22

0 votes

Permalink

Copy And paste this it worked for me after I was struggling with the brown

points
Submitted by Jack
over 10 years