Bootstrap: Responsive does not work with hosted website

Asked

Viewed 116 times

0

I am doing a tcc for my technical course and as one of the questions was to make a responsive site, I decided to use the bootstrap, however, when I hosted the site, it presented some problems.

When I open my site on mobile, locally, as in the image below, it usually works the responsive part.

When I open it on the spot, it looks like in the image below.

Can someone help me?

  • 1

    Check that you have this tag on your site <meta name="viewport" content="width=device-width, initial-Scale=1.0, Maximum-Scale=1.0, minimum-Scale=1.0, user-Scalable=no" />

1 answer

0


Seems to be the same problem that I found on my TCC months ago. You can put these three tags on your head (special attention to the viewport)?

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
...
</head>
  • Thank you, I put it and it worked!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.