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

gene c
gene c
13,630 Points

Why wasn't the secondary-content class removed in the HTML document?

We removed the border property from the secondary-content selector in the CSS file and added it into the t-border selector. The secondary-content selector was subsequently deleted from the CSS document

The t-border class was then added on in the HTML document However, the secondary-content class wasn't deleted from the HTML document.

2 Answers

Jack Cummins
Jack Cummins
17,417 Points

It's because he's going to use the t-border class for every part of the website that needs that border. Then the secondary-content class will be used to do the rest of the styling for the secondary-content.

gene c
gene c
13,630 Points

Yes but he removed the secondary-content selector in the CSS doc.. Unless he plans to add the selector back into the doc again next time?