Reusable CSS with Mixins HELP

Reusable CSS with Mixins HELP
0.0 0

#1

Tell us what’s happening:

I have tried all the methods to correct the mistakes and also browsed the syntax. I’m finding it difficult to understand where I’m going wrong or what is the mistake I have done?

Your code so far


<style type='text/sass'>
  @mixin 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($radius:15px);
  }
</style>

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

Your browser information:

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

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


#2

@include border-radius($radius:15px);

You’ve already defined the variable ^^ Re-check the argument you’re passing to the mixin and compare it with the example provided^^
Good luck!