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 Unused CSS Stages Flexbox and Multi-Column Layout Multi-Column Layout

huckleberry
huckleberry
14,636 Points

Regarding the property column-width: Did Guil mean "min-width" instead of "max-width"?

In the video, when overlord Guil was discussing the column-width: ; property, he said

So noooow, our columns will always be 250px wide. So this is sort of like a max-width: ; for our columns. Because as you can see, when the browser window or screen size is narrowed, the column count is reduced to fit the screen by flowing its content into less columns that are 250px wide until it's reduced to a single column

So it seems to me that what the browser is doing is resizing the columns once they hit a breakpoint of 250px, or in other words, once the columns get below 250px, the browser refits them into larger columns. So, at least to my understanding, this would be the same as min-width: ; would it not?

Or am I completely misunderstanding?

Thanks in advance!

1 Answer

Colin Marshall
Colin Marshall
32,861 Points

I would agree with you that min-width would make a little more sense here. It's like having a breakpoint with a min-width of 250px per column. Once it goes below that 250px per column width, it gets rid of a column.