I think this is the correct answer for this challenge but it keeps rejecting

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<style type='text/scss'>

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

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

<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/100.0.4896.127 Safari/537.36

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

Link to the challenge:

Ya, the code you pasted above works for me. Are you using a browser extension that alters the styling? If so, you’ll want to disable it. Otherwise, try another browser maybe?

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