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

Lukas Pscheidt
Lukas Pscheidt
2,229 Points

Navigation 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

https://w.trhou.se/7ulafb97o3

1 Answer

Owa Aquino
Owa Aquino
19,277 Points

Hi 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
Lukas Pscheidt
2,229 Points

Thanks 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
Lukas Pscheidt
2,229 Points

Thanks for your reply I find out what is wrong. Thanks

Owa Aquino
Owa Aquino
19,277 Points

Great! glad I can help. :)