"CSS Foundations" was retired on July 8, 2016. You are now viewing the recommended replacement.

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 How to Make a Website Styling Web Pages and Navigation Build Navigation with Unordered Lists

It won't line it a row. It's still a list.

Okay so basically it just stays laid out weird they aren't in one row like in the video it is still in a list format.

Here is the link of code I am talking about. Go to the folder css and then click main.css and then scroll down to the very bottom where it says nav li { bla bla bla } That is where it is suppose cahnge it from a list into a row. Please respond as soon as you can so I can get back to learning :D. Thanks!

Link to code... https://w.trhou.se/qosl7hw9sf

2 Answers

Robert Vaida
Robert Vaida
8,718 Points

Hello

Try adding display: inline-block to your unordered list. Ex:

nav ul { display: inline-block; }

That worked but it made the text all in one spot so now all the words are smushed together.

Robert Vaida
Robert Vaida
8,718 Points

Delete the display: inline-block delegation from the li elements.

Worked Thanks!