Prevent HTML page from horizontal scrolling

/ Published in: CSS
Save to your folder(s)

html, body {
max-width: 100%;
overflow-x: hidden;

Copy this code and paste it in your HTML
  1. html, body {
  2. max-width: 100%;
  3. overflow-x: hidden;
  4. }


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.