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

Aligning navigation to the top right side by side

HI, I'm working on the responsive layout project. I'm stuck on getting my navigation to the top right, side by side with my name when the screen is 1024 and larger. I used display:inline on my name,main-nav, and main-nave li class but it isn't working.Anyone able to help? Here's the codpen:http://codepen.io/melissaorgill/pen/XdWONK.

Matthew Brock
Matthew Brock
16,791 Points

please show a copy of your css code

Thanks for the reply. If you click the codepen link it's on there along with the html.

2 Answers

Awesome! Thank you!

Gianmarco Mazzoran
Gianmarco Mazzoran
22,076 Points

There was a couple of errors in the HTML file and in the CSS some classes they went to overwrite others and make things not working properly! Glad that I helped you, happy coding!

Hey,

It looks like you're missing a closing slash on the h1...

    <h1 class="name-1"> Melissa Orgill</h1>

Darn syntax haha. Thanks!