I can't figure out what's with my code! Create Reusable CSS with Mixins

Tell us what’s happening:

“Your code should declare a mixin named border-radius which has a parameter named $radius.”

this error msg popping up again and again! Not sure what’s wrong with my code!

Your code so far


<style type='text/sass'>
    @mixins border-radius($radius){
      -webkit-border-radius: $radius;
      -moz-border-radius: $radius;
      -ms-border-radius: $radius;
      border-radius: $radius;
  }
  
  
  #awesome {
    width: 150px;
    height: 150px;
    background-color: green;
    @include border-radius(15px);
  }
</style>

<div id="awesome"></div>
  

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/sass/create-reusable-css-with-mixins/

You have a typo. It’s mixin not mixins.

2 Likes