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.

CSS CSS Basics (2014) Enhancing the Design With CSS Adjusting the Layout with Media Queries

Ryan B.
Ryan B.
3,236 Points

Meta Tag

Can we add the meta tag

<meta name="viewport" content="width=device-width">

in the beginning stages of building our app knowing that it will eventually need to be done?

1 Answer

steyoung
steyoung
12,781 Points

I would think maybe you would want to itemize the widths depending on the viewport. The experience on the web may not be very desirable and if you wanted to make adjustments for the web, I imagine that could be tiresome and cause issues. I think the media query would be best.

I'm still new at all of this myself but I think if it was something preferable, it would have been demonstrated already. When I studied How To Build A Website and CSS both instructors used media query in CSS. That's also the approach I'm taking, it's easier to adjust once everything is in place.

Ryan B.
Ryan B.
3,236 Points

Thanks Stephan. Hey good luck moving forward, we have a lot cut out for us.