how to get rid of horizontal scroll in css code example Example: DISABLE the Horizontal Scroll html, body { max-width: 100%; overflow-x: hidden; }