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 Unused CSS Stages Flexbox and Multi-Column Layout Flexbox: Part 2

SAMUEL LAWRENCE
PLUS
SAMUEL LAWRENCE
Courses Plus Student 8,447 Points

How do you align the flexbox to the top?

Hi Guil Hernandez also in this video, you mentioned how to align the column center and flex-end which puts it at the bottom. How do you align it top, or flex start or what not? My point is what if you want it at the top?

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

I'm not 100% on this by any means but try using

align-self: flex-start;

This seems to push a flex item to the top of it's flex container according to this article on CCS Tricks. :-) http://css-tricks.com/snippets/css/a-guide-to-flexbox/

SAMUEL LAWRENCE
SAMUEL LAWRENCE
Courses Plus Student 8,447 Points

Hi Jonathan Grieve thank you. It worked perfectly. And thanks for the link, very helpful.