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 trialAlberto Cruz
4,955 PointsHow to make flex items stretch on the cross-axis to fill the parent container.
A challenge is asking me to do this but I know that the default for items is to fill the container vertically...
/* Complete the challenge by writing CSS below */
.row {
display: flex;
}
.column {
align-self: stretch;
}
1 Answer
Garrett Thomsen
Courses Plus Student 14,474 Pointsi did the challenge and this worked for me
.row { display: flex; }
.column { flex-grow:100% ; }
i went here https://www.w3schools.com/cssref/css3_pr_flex.asp to see info on hiw ti use this.
Alberto Cruz
4,955 PointsAlberto Cruz
4,955 PointsHi Garrett, Thank you. I was able to figure it out. I used flex-grow: 1.