Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Jack Vu
10,325 PointsSass stage 2, Extending Selectors, question 1 of 3.
Here's the challenge:
Style the class .animals to have a background of #369. Use "extend" to apply those styles to a new class, .dogs.
I have:
.animals { background: #369; }
.dogs { @extent .animals; }
Is that not correct?
I get "Bummer! The .dogs div should have a background-color of #369. Did you have the .dogs class extend the .animals class?"
I swear I have it right, but have no clue what I'm doing wrong..?
Thanks in advance!
5 Answers

Mark Talbot
6,102 PointsHi jack,
You've got the concept correct--there's just a typo in your code.
It should be '@extend' not '@extent'.
Mark

peterdemain
8,001 Points.aniamls { background: #369; }
.dogs { @extend .animals; }
I'm am passing this which i beleave it's the same. excluding the typo.
Not working, any advice??
Thankyou

peterdemain
8,001 Pointsi see it!! just after i posted, dur! lol haha.

peterdemain
8,001 Pointsi see it!! just after i posted, dur! lol haha.

peterdemain
8,001 Pointsi see it!! just after i posted, dur! lol haha.