Matteo Boscolo
Matteo Boscolo

Reputation: 708

Chrome developer tools not loading @media queries when switching to device view

I have this @media query inside my CSS:

@media screen and (max-width: 767px) {

/* some styles*/

} /*end @media 767s*/

When I manually resize the page, it switch to the responsive layout when it hits the 767px break point.

However, when I select any device layout from the Chrome's dropdown

Chrome's dropdown

the default page is loaded instead of the media query, even if the device's width is smaller than the 767px break point. What am I doing wrong?

Upvotes: 3

Views: 887

Answers (1)

user10089632
user10089632

Reputation: 5560

Try this

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

Upvotes: 5

Related Questions