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

Abhijeet Das
PLUS
Abhijeet Das
Courses Plus Student 3,158 Points

How can I show or hide content on navigation click?

I want to show content when I click on nav link and want to hide other contents Pls help me to solve this problem. http://codepen.io/anon/pen/EabXER

2 Answers

Ben Spears
Ben Spears
19,148 Points

Hi,

This is something that you would want to use jquery for, its the easiest way to achieve a show/hide feature on a click. If you havent gotten that far yet dont worry, it will be covered when you take the first jquery course.

Abhijeet Das
PLUS
Abhijeet Das
Courses Plus Student 3,158 Points

Thanks for your help is it any how possible only with CSS? i have seen it one of codrops blueprint (http://tympanus.net/codrops/2014/03/21/responsive-full-width-tabs/) but i m not sure about that they used jquery or not.