CSS Sass Basics Improve Your Workflow with Sass Write Nested Selectors

Ja'Quan Thompson
seal-mask
.a{fill-rule:evenodd;}techdegree
Ja'Quan Thompson
Front End Web Development Techdegree Student 8,862 Points

I am confused on what the question is asking because there is not a .icn-success class defined. does anyone know?

I am confused on what the question is asking because there is not a .icn-success class defined. does anyone know? I thought it wanted me to use the ampersand to replace the icn part of the selector but it does not work.

style.scss
.banner {
  padding: 1em;
  background-color: lightgrey;

.button{
font-size: 1.5em;
  }
}

.icn{
font-size: 1.25em;
&-success:{
  color: green;
  }
}

2 Answers

Martin Sole
Martin Sole
79,297 Points

Hi

You are correct with what you thought the question is asking you, nesting -success using the ampersand. The reason it is failing is because you have a colon at the end of success.