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

General Discussion

Mobile first approach

Hi,

I have started a webpage using the mobile first approach and I want to add an element to my webpage when it resizes to desktop size. I have included it in my html mark up.

For my css mark up I have put display : none, for this element but when I add the media query for the larger devices I can't include this element.

Is there anyway to do this. I have looked into visibility: hidden. but this still doesn't work.

1 Answer

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

Have you tried adding display : block; in the media query for the larger devices.