Bro can i get the solution of this one i am frustrated doing it and i am not able to do this one

Tell us what’s happening:

Your code so far


<style type='text/sass'>

@mixin border-radius{
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;

}


@include border-radius mixin(15px)

#awesome {
  width: 150px;
  height: 150px;
  background-color: green;

}
</style>

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36.

Challenge: Create Reusable CSS with Mixins

Link to the challenge:

We won’t just give you a solution, but we can help you fix your code. What do your failing tests say?

1 Like

ya plz help what is wrong in this code

Well, Your failing tests give you some information. It says that you have a syntax problem on line 11.

Notice that you need to

Then use the border-radius mixin to give the #awesome element a border radius of 15px.

but you have not added a border-radius to the #awesome element.

You are also not following the example of how to include a mixin

div {
  @include box-shadow(0px, 0px, 4px, #fff);
}

You also aren’t following the example of how to add arguments to a mixin

@mixin box-shadow($x, $y, $blur, $c){ 
  -webkit-box-shadow: $x $y $blur $c;
  -moz-box-shadow: $x $y $blur $c;
  -ms-box-shadow: $x $y $blur $c;
  box-shadow: $x $y $blur $c;
}
1 Like

OK understood
thankyou bro