Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Front End Web Development

For the Code Challenge: Write Hexadecimal Colors I am on the second challenge and it keeps telling me im wrong. Any help would be nice

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Leon,

What colours is it asking you to enter and can you paste your code in a post please.

Here is a link to explain how to use Markdown to post your code How to post code

If you look at the bottom of the box when your typing a reply you will see Markdown Cheatsheet that will also explain how to post your code.

You have to make sure you have a bit of space under your last line of text in your post. Then you add three back ticks followed by html or css depending on the type of code your inserting.
Then straight after your last line of code you add another three back ticks.
Remember to leave at least a few lines between any text at the top or bottom of your code.

alt text

Hope this helps.

Thanks for the quick reply, It says "Bummer! Double check that you've styled paragraph (p) elements to be black with a hexidecimal value." Here is the code

a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
}

#logo {
  text-align: center;
  margin: 0;
}

h1, h2 {
  color: #fff;
}

p {
  color: #111
}

Hopefully you can help.

1 Answer

Wayne Priestley
Wayne Priestley
19,579 Points

Hey Leon,

The hex code for black is #000 not #111 but you also missed the ; at the end of it.

Hope this helps.

Thank you so much, greatly appreciated.