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
jne
12,613 PointsSet meta viewport only to one element on a webpage
I'm building this website and I only see one solution... And that requires that it is possible to set the meta tag viewport only to one class/id/tag on a webpage and not the rest. I want to set the meta viewport only to my navigation bar. And my iframe to be set with the default
1 Answer
welcomeuniverse
1,942 Pointsmeta viewport or meta tag as it is popularly called applies to everything on the DOM page.You should use media queries to target some part of your page /aka the navigation