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.


David McEnnerney
David McEnnerney
Front End Web Development Techdegree Student 2,377 Points

Adding content with media queries

Hi all,

Is it possible to add content using Media queries. For example adding more links in a nav as the screen size adjusts? I can't figure out how this works??

thx :)

2 Answers

Konrad Pilch
Konrad Pilch
2,435 Points

I think I know what you mean. Yes you can.

The logic behind is that e.g. whatever is more than 500px, is hidden, if you go below 500px, you can display in mdeia queries below 500px .e.g #forum display block, on 500px + , it would be #forum hidden, or display none.

I hope you get it.At least thats how i do it.