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

CSS

error on item 4 of the code challenge of the "finishing the CSS" section of "Build a simple Website" ?

In response to the directive: "Select the copyright using an ID selector and give it a solid top border that is 8 pixels thick and has a color of #2A0400."

I typed:

#copyright {
border-top: 8px  #2A0400;
}

and received an error message. I'm not sure what my mistake is. Is this an error?

3 Answers

@Stacey - Remember you select an ID by prefixing a #

Thank you, I actually did put the # tag (hash tag) in my code. And it still didn't work?

BTW, do I need to do something special in order to get the hash tag to show up in my forum posts? Is that part of Markdown?

Stacey - I added markdown to your first post so your code shows up correctly.

Here are the directions again ...

Select the copyright using an ID selector and give it a solid top border that is 8 pixels thick and has a color of #2A0400

Can you see what you missed?


do I need to do something special in order to get the hash tag to show up in my forum posts? Is that part of Markdown?

Yes it is part of markdown, they are called code blocks.

  • For multi-line code, indent each line of code by 4 spaces
  • For inline like so #copyright, then use backtick character ( ` ) at the start and end of the code snippet