SASS - Create Reusable CSS with Mixins

Tell us what’s happening:
I looked at the hint of this challenge and I couldn’t see a problem with my code but it says “Your code should call the border-radius mixin using the @include keyword, setting it to 15px.” pls help me

Your code so far

<style type='text/scss'>
  @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(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/112.0.0.0 Safari/537.36

Challenge: SASS - Create Reusable CSS with Mixins

Link to the challenge:

You only need to add a ; at the end of the @include statement.

1 Like

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