Create Reusable CSS with Mixins...help

Tell us what’s happening:

help me out…

Your code so far


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

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

Your browser information:

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

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

You need to also add a line for border-radius without vendor prefixes in your style.

Get rid of this line, this is unnecessary.

Then on your last line, all you will be doing is pass in a value as a parameter for your mixin.

For ex…

@include text-color(12px);

1 Like