skip to Main Content

When I run VScode live server, the whole page is too large and I don’t have a responsive web page however in DevTools it work just fine.

This is how page look in my screen
This is how page look in my screen

This is how it shows in DevTools
This is how it shows in DevTools

This is CSS media query

@media screen and (min-width: 1200px) {
  .section-center {
    width: 95vw;
    grid-template-columns: 1fr 1fr;
  }
  .photo {
    height: 150px;
  }
}

2

Answers


  1. Chosen as BEST ANSWER

    It was "Dimensions" setting of the browser


  2. I think it’s related to this:

    57&

    Also make sure you have:

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

    inside your head tag.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search