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

Can someone please help me with this??!!?? Flexbox Layout

First, let's establish a flex formatting context. Give main-nav the display value that converts its list items into flex items.

this is what i have--

.main-nav  li {
  display: flex;
}

2 Answers

Kevin Kenger
Kevin Kenger
32,834 Points

Hey Adrian,

The display: flex property and value should be applied to the container that holds the items you want to convert into flex items.

Check out this article on Flexbox from CSS-Tricks. It really goes into detail and should make it a lot easier to understand what it's all about.

Tommy Gebru
Tommy Gebru
30,164 Points

Hey Adrian, what challenge number are you working on?