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 CSS to Sass Refactoring with Sass Nesting Selectors

Antonio Martinez
PLUS
Antonio Martinez
Courses Plus Student 14,457 Points

Codekit reports me of an error when I'm nesting the main-heading and main-title using the ampersand character (&-heading

I can't use the & selector when I'm naming the nesting selector for main-heading and main-title.

I'm using the Codekit app and it reports me continuosly of an error due to the use of the ampersand character.

What should I do to go on?

2 Answers

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Antonio Martinez,

The &- prefix is one of the newest features in Sass. Did you update to the latest version of Sass?

Antonio Martinez
PLUS
Antonio Martinez
Courses Plus Student 14,457 Points

I think I will have to update codekit to the last versiΓ³n Codekit 2 becasuse Codekit uses an old version of SASS and I can't update Codekit but only purchasing the new version... :(