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

Sass 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
Mark Talbot
6,102 Points

Hi jack,

You've got the concept correct--there's just a typo in your code.

It should be '@extend' not '@extent'.

Mark

.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

i see it!! just after i posted, dur! lol haha.

i see it!! just after i posted, dur! lol haha.

i see it!! just after i posted, dur! lol haha.