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 trialLukas Pscheidt
2,229 PointsNavigation Bar with Flex
Hi guys, I am learning Flex Box and now i want to make my first website called "learning web" and now I struggle with navigation bar.
I want .main-nav list item (.main-nav li) display inline, but it does not work. Can some one please write a code, which will work?
Thanks a lot
1 Answer
Owa Aquino
19,277 PointsHi Lukas,
The problem on your css is that you're setting the flex-direction into column and not row. Try changing the flex-direction value to row or remove it.
Hope this helps.
Lukas Pscheidt
2,229 PointsLukas Pscheidt
2,229 PointsThanks for your reply. I want .name-brand as it is (on top of that .main-nav). Then I need just .main-nav inline under this .name-brand. Hope you understand me :)
Lukas Pscheidt
2,229 PointsLukas Pscheidt
2,229 PointsThanks for your reply I find out what is wrong. Thanks
Owa Aquino
19,277 PointsOwa Aquino
19,277 PointsGreat! glad I can help. :)