Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Modular CSS with Sass!
You have completed Modular CSS with Sass!
Preview
We want to be able to manage the grid system (column count, gutters, max-width, etc.) from our config file. First, we'll define our grid configuration variables, then write a function for generating grid column classes.
Related Videos
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
we're gonna create a responsive grid
system to help lay out our modules.
0:00
We'll start by defining a few grid
configuration variables,
0:00
then let Sass handle the rest.
0:03
So what we're gonna do first is define a
few variables for our grid configuration,
0:06
because we'll wanna be able to control the
column and gutter width.
0:11
Also the column count and the max width of
our grid, all within our grid.scss file.
0:15
So, all the way at the bottom, right under
this comment for
0:22
Grid, let's define our grid configuration
variables.
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up