Tell us what’s happening:
Describe your issue in detail here.
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;
div {
@include border-radius mixin(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 Edg/112.0.1722.34
Challenge: SASS - Create Reusable CSS with Mixins
Link to the challenge:
-
our code should declare a mixin named
border-radius
which has a parameter named$radius
. -
Waiting:Your code should include the
-webkit-border-radius
vendor prefix that uses the$radius
parameter. -
Waiting:Your code should include the
-moz-border-radius
vendor prefix that uses the$radius
parameter. -
Waiting:Your code should include the
-ms-border-radius
vendor prefix that uses the$radius
parameter. -
Waiting:Your code should include the general
border-radius
rule that uses the$radius
parameter. -
Waiting:Your code should call the
border-radius mixin
using the@include
keyword, setting it to15px
.
Do I have the code in the correct place? I’m a little confused