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

Alex Oates
Alex Oates
7,171 Points

Trouble with drop down mobile navigation and fluid grid (G-Grid) Please help!

I'm trying to get the hang of using fluid grids, I've used the template layout from the grid layout course on treehouse.

My trouble is getting the primary content to follow down with the animation of the drop down menu. Along with the list items becoming somehow transparent.

If I position my nav and all of its content outside of my header everything works fine. (using JS for the dropdown function)

Here is the JSfiddle

http://jsfiddle.net/7rbzc13e/

2 Answers

You can do something like this http://jsfiddle.net/7rbzc13e/1/ where you toggle another class to the content element Note: I had to add a class to the content div (main-content) and add a top margin on the new toggle class (menu-down).

I hope this helps.

Hank Couture
Hank Couture
8,261 Points

I added a CSS class (.showingMenu) you can toggle to add a top margin onto the grid header below to give it space http://jsfiddle.net/k2eLymj9/