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 trialJack 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.