---
title: "Comment by yinon on \"Better scrolling through modern CSS\" | Hashnode"
description: "Thanks for an illuminating piece. funny enough, overscroll-behavior: contain will not apply or affect an element without enough content to apply a scrollbar. so"
url: "https://hashnode.com/posts/better-scrolling-through-modern-css/62a3ec7ba2c282d2d837800e/comment/62b9de30f2e6c7d70c1242f8"
---

[Discussion](https://hashnode.com/posts/better-scrolling-through-modern-css/62a3ec7ba2c282d2d837800e)

Comment [Better scrolling through modern CSS](https://hashnode.com/posts/better-scrolling-through-modern-css/62a3ec7ba2c282d2d837800e)

[yinon](https://hashnode.com/@yinon)

[Jun 27, 2022](https://hashnode.com/posts/better-scrolling-through-modern-css/62a3ec7ba2c282d2d837800e/comment/62b9de30f2e6c7d70c1242f8)

Thanks for an illuminating piece. funny enough, `overscroll-behavior: contain` will not apply or affect an element without enough content to apply a scrollbar. so no overscroll-behavior if no overflow content
