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) Basic Selectors Reusing Classes

I am not seeing my borders when I refresh.

css: .t-border { border-top: 2px grey;} class="primary-content t-border">

5 Answers

change "primary-content t-border" to just "t-border"

That will fix the issue for the border, however, that might defeat the purpose they're talking about here. Using multiple classes on the same element.

Make sure it says solid also.

.t-border { border-top: 2px solid lightgrey; }

Try a refresh to make it work, sometimes just clicking the preview does not work for me. I have to manually refresh.

Vlad Legkowski
Vlad Legkowski
9,882 Points

I know this is an old tread, but check if you removed {} after the .secondary-content, thats what happened with me

Robert Doyle
Robert Doyle
4,737 Points

That's what I did wrong also. Thanks.

change "primary-content t-border" to just "t-border"

Piyush Patel
Piyush Patel
17,253 Points

I don't think that is the issue here unless he overrides the declaration with the help of primary-content.

Thanks! That did it.