Tell us what’s happening:
I am currently trying to use ‘mixin’ for the border radius for this challange however for the last step, " Your code should call the border-radius mixin
using the @include
keyword, setting it to 15px." However, this one is not going through for some reason…
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 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
.
Challenge: Create Reusable CSS with Mixins
Link to the challenge: