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

Quiz Sass Grid System

I do not remember this topic being covered in a video. Can anyone 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); }

3 Answers

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Shelby Larson,

The answer to this is covered at the 6:20 mark of this video. :)

Also, in this video, Dale Sande goes more in-depth on the topic.

Actual it's closer to time mark 6:37 when Guil talks about

(and shows) adding:

!global

..to this line (which is not exactly the same line as in the quiz):

$context: g-context($g-col-width, $g-col-count, $g-col-count, $-gutter-width !global;

HELP pls ;)

Currently, the $context variable is scoped to the loop, so it's unable to pass a value in the .grid_________. 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___________     width: percentage($target/$context);   } } .grid_______ {   margin-left: percentage($gutter/$context); }

I try now 2 hours to finish this quiz. I don't find the right answers. Can anyone tell me the right answers that I can move on. It's so frustrating and complicated to understand everything in this course. But I will finishing it and than I will come back later when I have more experience with sass.

Lindsey Whitney
Lindsey Whitney
9,699 Points

Did you ever figure this out? I am stumped with this question too :(