Home > Back-end >  Why does html body have overflow?
Why does html body have overflow?

Time:04-17

I am learning front-end development by trying to clone enter image description here

CodePudding user response:

It’s likely even a bug, like if your image or any element size is more than your body size or screen size then you might face that error so if you resize your image/SVG/tag/element then may not face that error, Since if you do overflow: hidden; rather than overflow-x: hidden; – it stops it. It’s just more common and practical to use overflow-x.

*{
  overflow-x: hidden;
}

If you are again facing this error after applying the solution then you can add some javaScript. for javascript, you can comment below my answer--->
Hope You got it!

  • Related