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
znzlcrstkk
Front End Web Development Techdegree Graduate 28,511 Pointsflexbox order is not working
Can somebody help me, my css code looks fine but dont know why flexbox order is not working, look at media query for tablet. Heres my repo link https://github.com/flajus1/Project_2/
1 Answer
Adam Hill
7,492 PointsJust had a quick look at your css, and I can only see order:2 set once for flex-item. That means every flex-item will have the order of 2, which means no item has an order priority higher than any other and they will just display in the order they are in the markup.
If you want a single flex-item to have a higher order you will need to target it with another class and give that class an order of 1.
Then that item will display before any items which have an order of 2.