Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Advanced Sass Advanced Directives Iterable Album

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"?

@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);

1 Answer

Samantha Atkinson
Samantha Atkinson
Front End Web Development Techdegree Student 36,211 Points

Hi sorry for the late reply Mokanye Tumelo Tricia. Did you get it to work? When you call the mixin that would be where you want to add Treehouse and Google, as basically those are the ad-banners you want to create. As in the mixin you are using the length function which means the for loop loops through the length/number of items included in the argument.