# Scrollbar Shifts Page Left when Visible

**URL:** <https://forum.bubble.io/t/scrollbar-shifts-page-left-when-visible/361999>\
**Category:** Responsiveness\
**Created:** [March 4, 2025, 3:02pm UTC](https://forum.bubble.io/t/scrollbar-shifts-page-left-when-visible/361999 "2025-03-04T15:02:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![QIRO](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/qiro/32/237385_2.png) [@QIRO](https://forum.bubble.io/u/QIRO)\
**Post date:** [March 4, 2025, 3:02pm UTC](https://forum.bubble.io/t/scrollbar-shifts-page-left-when-visible/361999/1 "2025-03-04T15:02:10Z")

</div>

Hi guys,

My SPA has a vertical scrollbar that appears on page that are longer than the current viewport (like everyones!) but it shifts the whole page left a few px to accomodate the new onscreen element.

When the user navigates to a page that isn’t overflowing, the site moves right again.

How can I mitigate that left/right shifting for the end user?

---

<div class="post-metadata">

**Author:** ![nfisher](https://avatars.discourse-cdn.com/v4/letter/n/848f3c/32.png) [@nfisher](https://forum.bubble.io/u/nfisher)\
**Post date:** [March 5, 2025, 12:55am UTC](https://forum.bubble.io/t/scrollbar-shifts-page-left-when-visible/361999/2 "2025-03-05T00:55:47Z")

</div>

You should be able to sort this by hiding the scroll bar, it is likely the browser adding the pixels. try it in a different browser also.

You will need to give repeating group an ID and add some CSS on to the page via a HTML element.

Then try adding the following code.

> `<style>`  
> `#yourID::-webkit-scrollbar { display: none; }`  
> `#yourID {`  
> `-ms-overflow-style: none;`  
> ` scrollbar-width: none;`  
> `}`  
> `</style>`
