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.

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... :(