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
lorenaolguin
6,034 Pointsdisplay: inline-block, is not working, the nav menu items are still stack one on top of the other, what am i missing?
I realized in a more advance video that the items in the nav menu are displayed in the same line, but mine is not working, so what could be the problem?
Aris Constantinou
2,687 PointsTry adding display:block; in your li items
1 Answer
Kevin Goudswaard
11,061 PointsYou can try setting the parent elements to display inline-block. This property will apply to the parent's contents. The inline-block property allows you to specify height and width properties to those objects. Try playing around with their width and height. here is a good guide: https://css-tricks.com/almanac/properties/d/display/
Garrett Sanderson
12,735 PointsGarrett Sanderson
12,735 PointsPost your code so we can help you further