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

pat barosy
pat barosy
6,759 Points

secondary-content and t-border classes

Hello all,

Wondering why Guil created the t-border class instead of just inserting secondary-content into the footer and primary content area. It would have produced the same exact styling.

Thanks

2 Answers

Steven Parker
Steven Parker
231,269 Points

I'm just guessing, but I can think of two reasons:

  • the name "t-border" is more descriptive of what the class does
  • he may have wanted to reserve the "secondary-content" class for properties unique to secondary content
pat barosy
pat barosy
6,759 Points

Both of your answers make sense. Thanks for the reply!!