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. }

URL: http://stackoverflow.com/questions/17756649/disable-the-horizontal-scroll

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.