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 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;
}