Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

Parvez Noor
PLUS
Parvez Noor
Courses Plus Student 15,917 Points

Whats wrong with my code? Navigation bar has lots of issues. Can't create a pure CSS dropdown menu.

Hey guys,

Not sure what's going on with my code but the navigation bar seems to give me lots of problems. It's really unresponsive to my code and things only partially work.

Previously problems, which I've fixed unsatisfactorily include: The items of the navigation bar don't reach the bottom of the navigation bar's height (unless I make them big enough) - But if I changed the font size or anything, they wouldn't fit.

At the moment I'm trying to create a CSS dropdown menu, and although I can hide the dropdown class and get it to re-appear, I can't figure out how to get it in the correct location.

Please analyse my code and let me know what's wrong with it!

https://w.trhou.se/hw01h7qfk1

1 Answer

Parvez Noor
PLUS
Parvez Noor
Courses Plus Student 15,917 Points

To add, also, can anyone figure out why my the section element of my page doesn't take up the entire height of the container? The aside does... and the code isn't largely different? I'm guessing it has something to do with the <main> or <div class="content"> elements, but when I remove them it ruins the whole layout of my site!

Please help!