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

I cant seem to align my Navigation bar name and list items

I have moved many things around and cant seem to get my nav name to align with my list items Note: Ignore the location of the workspace I am linking. I used this workspace and input my own code even though I am passed that part of the web degree

https://w.trhou.se/h40hhrnfxr

So to be more specific, I need to align my ".nav li" and my ".nav .name" on the same horizontal line. So in other words I need Gregory to be lined up with Home Portfolio and Contact. Gregory currently is slightly higher then the rest of the nav bar.

1 Answer

walter palma
walter palma
3,189 Points

Its because in your media querie (min-width: 751px) you are giving padding values to nav .name that are overriding your "li" ones

Thank you so much i was on this for at least an hour