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 trialLisa Weil
4,919 PointsMedia Query breakpoints work great when I minimize and maximize but not when I Inspect my code with Dev Tools?
The media queries on my website are working great when I minimize and maximize the browser, however, whenever I go to inspect it, it will not show the mobile version when I change the viewport to iPhone or Galaxy. Does anyone know why it works fine on desktop but not in Dev Tools?
1 Answer
Cody Reed
Front End Web Development Techdegree Graduate 19,268 PointsI would double check your <meta> tag's viewport configuration placed inside the <head> tag of your HTML if your breakpoints are working outside of Dev Tools.
I've included and example that might help solve your problem:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Happy coding.
Robert Schaap
19,836 PointsRobert Schaap
19,836 PointsIs your site online somewhere or could you post some of your code?