Why is this code not working! Use @each to Map Over Items in a List

Tell us what’s happening:

  **Your code so far**

<style type='text/sass'>

@each $color in blue, black, red {
  .#{$color}-bg {background-color: $color;}
}

div {
  height: 200px;
  width: 200px;
}

</style>

<div class="blue-bg"></div>
<div class="black-bg"></div>
<div class="red-bg"></div>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36.

Challenge: Use @each to Map Over Items in a List

Link to the challenge:

Hi @n6chernin !

You changed this part when you are not supposed to.

Reset the lesson and only add this part

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.