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 Generating Column Classes

Do i still need to use Bootstrap if i can generate .col Width myself?

Do i still need to use Bootstrap if i can generate .col Width myself?

2 Answers

Cory Harkins
Cory Harkins
16,500 Points

You don't NEED to use bootstrap at all. Ever.

But if you do...

When compiling your SASS/SCSS, when you build your main.scss file with @import('_targetSassFileHere.scss'); Ensure that your bootstrap 4 _custom.scss w/copied _variables.scss is first in that @import order.

Use case:

I want to modify the variables that specify what col breakpoint is defined in px value, example( max-width: 580px).

Say, that I want the new value to be... 420px.

I want to open up bootstrap 4's _variables.scss file, select ALL > copy > open _custom.scss > paste > modify variable data.

col-xs-# : 420px;


Bootstrap is basically a collection of pieces that you put together to quickly build a website. It saves you the time of having to write css rules yourself.