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 trialChris Stauffer
547 PointsHaving trouble with getting flexbox child elements to be 100% height. (Codepen attached.)
Can anyone explain to me why my three white columns aren't stretching to 100% height? Bonus question: what's up with the extra margin below the bottom of the viewport?
1 Answer
Keith Kelly
21,326 PointsIn order for 100% height to work all of the parent elements need to be set to 100% as well. I believe you still need the height set to 100% on the .content-area and .main-content selectors.
You will also need to remove the height from the .content-area.row so that the sub header isn't stretched.
Hope that helps.