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!

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 Flexbox Properties Growing and Aligning Flex Items

I put align-self: center; to no avail...

/* Complete the challenge by writing CSS below */

.row {
  display: flex;
  align-self: center}
.column {flex-grow: 1;}
.primary {flex: 2;} 

2 Answers


You want to use align-items, not align-self.

This passes all 3 tasks:

/* Complete the challenge by writing CSS below */

.column { /***  Task 1  ***/
  flex-grow: 1;

.primary { /***  Task 2  ***/
  flex: 2;

.row { /***  Task 3 ***/
  display: flex;
  align-items: center; /***  Your Issue (FIXED)  ***/

BTW, here is a fun game to help reinforce your CSS flexbox skills:


And when you get around to learning CSS grid, there's this game, too:


I hope that helps.

Stay safe and happy coding!

Thank you Peter!!