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
205,354 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!!