responsive design not working chrome dev tool but browser does responsive design not working chrome dev tool but browser does google-chrome google-chrome

responsive design not working chrome dev tool but browser does


Add viewport meta to your head tag

<meta name="viewport" content="width=device-width, initial-scale=1.0">

VIEWPORT

The viewport is the user's visible area of a web page.

The viewport varies with the device, and will be smaller on a mobile phone than on a computer screen.

Before tablets and mobile phones, web pages were designed only for computer screens, and it was common for web pages to have a static design and a fixed size.

Then, when we started surfing the internet using tablets and mobile phones, fixed size web pages were too large to fit the viewport. To fix this, browsers on those devices scaled down the entire web page to fit the screen.

The responsive design using chrome dev tool. But that is not working

  • CNTRL + F5 ( Force refresh the webpage ) and then check it.


You'll likely need to add viewport meta to your head.

<meta name="viewport" content="width=device-width, initial-scale=1">