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
Charlie Thomas
40,856 PointsResponsive Website
I am following along with the course and I have just finished the second badge but I have this error where the last item in the navigation bar drops down to a new line. So I downloaded the CSS from the project files and its different to the one I downloaded in the first badge. I'm really stuck and confused please help.
My html and css are available here: http://cdpn.io/Ccgps
2 Answers
Matt Caden
Courses Plus Student 6,588 PointsHi Charlie. I messed around with your pen and found that if you add a "width" to your "ul.nav", your last li element (Contact Us) will move up to the same line as the others. I used an arbitrary width of 500px but you can probably optimize this.
Looks like you still have some padding/margin to play with to get it perfectly inline with your other li elements in your navigation but hope this helps.
Joshua Johnson
6,364 PointsWe cant see your HTML or CSS but if I had to guess I would think that the links are too big for your wrapping div making it drop to the next line. But thats just a guess. I don't know where you are in the class though so it's kind of a blind guess. You should post your HTML and CSS in this forum and I'm sure one of us can help=)
Charlie Thomas
40,856 PointsMy code is in a pen here: http://cdpn.io/Ccgps
Charlie Thomas
40,856 PointsCharlie Thomas
40,856 PointsThanks Matt. Its a great help