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 CSS Basics (2014) The Box Model Padding, Borders, and Margins

JOHN MAUROMANOLAKIS
JOHN MAUROMANOLAKIS
6,722 Points

I can't understand why this is not working: .secondary-content{ border-bottom:2px, dotted, lightgrey; }

i am trying with the upper code to finish this unit but i don't understand where i have the mistake!

2 Answers

You're not supposed to have commas when describing the settings of a border all in one piece of code, the only time you really use commas are when you're selecting two or more elements at once before you make your declaration, or you're doing an RGB/RGBA value.

JOHN MAUROMANOLAKIS
JOHN MAUROMANOLAKIS
6,722 Points

Thank you very much Ethan! It finally worked!!!!

No problem bud, hope I could be of assistance.

In addition to what Ethan said, I believe you would also want to add a space after "-bottom:" so that it reads "-bottom: 2px"

JOHN MAUROMANOLAKIS
JOHN MAUROMANOLAKIS
6,722 Points

Thank you April! I put the space and made the changes that Ethan told me and finally i succeded the test!!!!