Alin Apetrei
Alin Apetrei

Reputation: 106

Empty body has bigger width than screen

Straight to the point, chrome says that my body has bigger width than screen size:

enter image description here

I simply cannot understand why this is happening, I saw that happening when I had the rest of the page developed, and I deleted element by element until I saw that even with empty body I've this issue. I tried box-sizing, width vw instead of 100%, and the rest of answers that i've find.

Upvotes: 2

Views: 334

Answers (2)

Alin Apetrei
Alin Apetrei

Reputation: 106

The zoom was the problem, I had 90% zoom set on chrome!

Upvotes: 1

Pinguto
Pinguto

Reputation: 436

if it is not a problem related to some css rule of the HTML tag, I would try an approach similar to this .. :)

body{
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    overflow: auto;
}

Upvotes: 0

Related Questions