Prevent overscroll browser behavior

This CSS snippet prevents that annoying over-scrolling behavior in the browser.

html, body { 
  overscroll-behavior: none; 

Man holding an iPhone in hands

Related posts

  • Laptop screen showing a photo gallery webpage

    How to Hide the Scrollbar with CSS

    October 20, 2022
    Here is a CSS code snippet to allow scroll but hide the scrollbar in your browser.
  • CSS codes displayed on monitor screen

    CSS reset basic

    October 6, 2022
    Here is a stripped-down CSS reset code to start the front-end HTML layout. This is just for quick development; otherwise,…
  • Desktop space image

    BEM – CSS naming convention

    October 7, 2022
    The Block, Element, Modifier methodology (commonly referred to as BEM) is a popular naming convention for classes in HTML and…