Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Modular CSS with Sass Sass Grid System Review: Sass Grid System

Larisa Popescu
Larisa Popescu
20,242 Points

Sass grid final quiz. I tried solving it and i get wrong answer. I don't understand why. Can someone help me?

Currently, the $context variable is scoped to the loop, so it's unable to pass a value in the .grid_________col rule. Write the flag that will allow us to use the $context variable anywhere.

// Column loop

@for $i from 1 through $cols { $context: context($w, $cols, $gutter) ________________; $target: ($w * $i) + ($gutter * ($i - 1)); .grid_____col#{$i} { width: percentage($target/$context); } } .grid____ col { margin-left: percentage($gutter/$context); }

I'm sure that the second answer is !global. At the other ones i put __. What is wrong?

5 Answers

Miguel Palau
Miguel Palau
24,176 Points

Guil just replied to me on Twitter it's a bug he'll fix it asap.

I think really the only answer needed was !global lol

Guil's Answer

Lindsey Whitney
Lindsey Whitney
9,699 Points

Awesomeβ€”thanks for sharing. I guess maybe I need to embrace this whole Twitter thing... ;)

Matthias J.
Matthias J.
20,355 Points

big thanks for your effort

Miguel Palau
Miguel Palau
24,176 Points

I'm stuck here as well hopefully Guil Hernandez can help us

Matthias J.
Matthias J.
20,355 Points

made it through but i didnt received a badge. only "+6" points"... its the second time this happens to me now :'(

Miguel Palau
Miguel Palau
24,176 Points

Check if you have everything checked on that section

Matthias J.
Matthias J.
20,355 Points

Everything is checked :)