How to fix it?


#1

Need help :slight_smile:
How to fix it?

@mixin dashed-border($width, $color: #FFF) {
  border: {
     color: $color;
     width: $width;
     style: dashed;
  }
}

span { //only passes non-default argument
    @include dashed-border(3px);
}

p { //passes both arguments
    @include dashed-border(3px, green);
}

div { //passes out of order but explicitly defined
   @include dashed-border(color: purple, width: 5px); 
}

5. Mixin Facts
#2

Start by scrolling down to the instructions. This is the example given in the lesson.


#3

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