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 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,487 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.