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

display: 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?

Garrett Sanderson
Garrett Sanderson
12,735 Points

Post your code so we can help you further

Try adding display:block; in your li items

1 Answer

You 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/