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

Igor Protsenko
Igor Protsenko
15,651 Points

Targeting the classes in Sass

I'm learning Sass Basics. Why should we write div.footer? Can't we just write .footer?

1 Answer

Tom Checkley
Tom Checkley
25,165 Points

I'm not sure which video you are watching, however either would work. It could be a specificity issue or other elements have the class .footer so this would only target the div with the class footer