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

David McEnnerney
seal-mask
.a{fill-rule:evenodd;}techdegree
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.