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 trialhuckleberry
14,636 PointsRegarding 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
32,861 PointsI 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.