---
title: "Discussion on \"Preventing the Layout Shift Caused by Scrollbars\" | Hashnode"
description: "Discussion on \"Preventing the Layout Shift Caused by Scrollbars\". The Problem\nWhen content overflows the page and the scrollbar shows up, the content is pushed/shifted to the left and vice versa, when the scrollbar disappears, the content is pushed/shifted to the right:\nhttps://www.youtube.com/watch?v=6Gq3lhwX-oM\n ..."
url: "https://hashnode.com/posts/preventing-the-layout-shift-caused-by-scrollbars/64d409a802bc351b25af7339"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Preventing the Layout Shift Caused by Scrollbars](https://rashidshamloo.hashnode.dev/preventing-the-layout-shift-caused-by-scrollbars?utm_source=hashnode&utm_medium=feed)

The Problem When content overflows the page and the scrollbar shows up, the content is pushed/shifted to the left and vice versa, when the scrollbar disappears, the content is pushed/shifted to the right: https://www.youtube.com/watch?v=6Gq3lhwX-oM ...

Aug 9, 2023 · 2 min read · rashidshamloo.hashnode.dev  
Read the article

-   [#html](https://hashnode.com/tag/html)
-   [#css](https://hashnode.com/tag/css)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Rashid Shamloo](https://hashnode.com/@rashidshamloo)

@rashidshamloo · Iran

  
[View profile](https://hashnode.com/@rashidshamloo)

Developer, Programmer, Avid Learner

Developer, Programmer, Avid Learner

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
