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 do you make you list items in nav closer.

how do I make my list items closer together in my navigation . under my media querie

https://w.trhou.se/8oyvkhdoyr https://w.trhou.se/8oyvkhdoyr https://w.trhou.se/8oyvkhdoyr

5 Answers

li { padding: 5px 10px; }

in your CSS code should be pretty close.

Good luck

Hard to know without seeing your code but I'm guessing from your question the <li>'s are displayed horizontally?

First thing to do is check the padding and margin of the relevant elements (probably <li>'s and <a>'s).

If that doesn't work you may be giving one of these elements a fixed width. A quick way to check that is change the text value (i.e. change About to A), if that doesn't change the spacing you're applying a fixed width where you shouldn't.

I have not seen the code but here is my best guess

Remove padding and margin

Make sure you you set the set the element display:inline-block.

In general I would look at the li in chrome developer tools.

Plus I add a border to see the spacing Between each element

Unfortunatelly, the links you've provided doesn't work for me, but you probably should look for something like padding for your <a> elements in your CSS code.