Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Build a Simple Website Styling Content Finishing the CSS

Whats wrong with this?

Line 21:

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

doesnt work...? Wheres the mistake?

5 Answers

Patrick Gerrits
Patrick Gerrits
14,614 Points

Lets get you on the way.

Is copyright a valid html tag? Or is it a class or id?

Then when you look at the border-top. What are the 0's for?

Jaka Dirnbek
Jaka Dirnbek
7,046 Points

What do the zeroes stand for?

copyright { border-top: 8px solid #2A0400 } should work.

Thanks (both); indeed, die 0 0 0 s got in the way. The error message was misleading me...

Thanks (both); indeed, die 0 0 0 s got in the way. The error message was misleading me...

Jason Broderick
Jason Broderick
7,361 Points

"copyright" is not a valid html tag

It should read ".copyright" if its a class tag or "#copyright" if its an id tag. This is the equivolent to the tag you specified in your html markup for example;

<div id="copyright"> content </div> is a # (id) attribute

<div class="copyright"> content </div> is a . (class) attribute

also "0000" means nothing, it doesnt apply to anything.

correct code (if it is to apply to an id tag for example) should read;

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