CSS Advanced Sass Advanced Directives @for

Mokanye Tumelo Tricia
Mokanye Tumelo Tricia
9,981 Points

help me here please guysessss

Here we have a series of ad banners, of increasing width. Can you add additional banners for "treehouse" and "google"?

style.scss
@mixin ad-banner($cols) {
  $col-val: length($cols);

  @for $i from 1 through $col-val {
    .ad-banner-#{nth($cols, $i)} {
      width: percentage((1 / $col-val) * $i);
    }
  }
}

@include ad-banner(apple microsoft);