CSS Responsive Layouts Media Queries Creating Breakpoints

Lisa Weil
Lisa Weil
4,919 Points

Media 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?

Robert Schaap
Robert Schaap
19,836 Points

Is your site online somewhere or could you post some of your code?

Cody Reed
Cody Reed
Front End Web Development Techdegree Graduate 19,268 Points

I 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.