Method argument error in 7th level



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?


PS: I solved the problem via Thanks.


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