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 Aligning Items to the Bottom of a Column

Why doesn't justify-content: flex-end work on the button?

I understand you can't use align-self on the button as the axis was swapped when you switch to column...but why does justify-content: flex-end; not work as this would target the axis you are trying to work on? This just seems more intuitive to me than messing with margins.

Ok I just realized that justify-content only works on the flex container...but, is there some sort of equivalent to "align-self" for flex items on the main axis?

1 Answer

Jamie Reardon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

No, that's where margins come in.

Flex-container properties for aligning items:

justify-content: ;
align-content: ;
align-items: ;

Flex-items properties for aligning individual items:

align-self: ;
/* margin properties */