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 CSS Flexbox Layout Building a Layout with Flexbox Flexbox Columns Challenge

Initial Width of 300px?

"Let's display equal -- but flexible -- widths for the columns. Create a new rule that targets the columns. Then, set the columns to evenly expand and display on one line, with an initial width of 300px."

So, I set:

.column { flex:1; min-height: 300px; }

I thought min-height was correct, but apparently not. Could someone please enlighten me of what I would use instead?

3 Answers

You did a good job! There's a couple minor issues, though:

  • You had said "min-height", try "min-width" instead.
  • You aren't supposed to say "flex: 1"... Try "display: flex".

Good luck! ~Alex

Hey! Thanks for the swift reply!

whoops, the min-height ---> min-width was a simple mistake, one that I overlooked. I'm still receiving the

"Bummer! Use the property that specifies the initial main size of the columns."

banner and I don't understand what I am doing wrong. Could you please help resolve this issue?

/* Complete the challenge by writing CSS below */

.row {
  display: flex;
}

.column {
  display: flex;
  flex-grow: 1;
  min-width: 300px;
}
.row {
  display: flex;
}

.column {

  flex: 1 300px;
}