Method argument error in 7th level

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>

Hello,

I am trying to solve 7th problem in mixins-and-parent-selector but I get an error.

Error: wrong number of arguments (1 for 0) for `photo-content'
        on line 103 of main.scss
>>         @include photo-content('titanosaur');
   -----------------^

// I wrote the code which is below.

@mixin photo-content($file) {
  content: url(#{$file}.jpg); 
  object-fit: cover;
}

.photo {
  width: 60%;
  margin: 0px auto;
  @include photo-content('titanosaur');
}

Why do I get that error? Could you help me?

Cheers.

PS: I solved the problem via "String Interpolation' excercise returns a compile error Thanks.

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