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 trialAlexei Thomas
2,492 PointsWhy 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.
1 Answer
Jamie Reardon
Treehouse Project ReviewerNo, 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 */
Alexei Thomas
2,492 PointsAlexei Thomas
2,492 PointsOk 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?