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 trial2 Answers
Steven Parker
231,236 PointsActually, "self-align
" adjusts along the cross axis, which will always be perpendicular to the flex-direction
.
So if you were seeing it adjust the Y-axis, then your flex-direction must have been "row" (the default) or "row-reverse".
BTW: If you're not already familiar with them, you're going to love these additional fun learning resources for flexbox:
yoav green
8,611 Pointshttps://developer.mozilla.org/en-US/docs/Glossary/Cross_Axis
found this pretty useful. thanks alot steven! keep on helping us :)