Wrap the content of your scrollable element into a div and apply padding-left: calc(100vw - 100%); .

<body> <div style="padding-left: calc(100vw - 100%);"> Some Content that is higher than the user's screen </div> </body>

The trick is that 100vw represents 100% of the viewport including the scrollbar. If you subtract 100% , which is the available space without the scrollbar, you end up with the width of the scrollbar or 0 if it is not present. Creating a padding of that width on the left will simulate a second scrollbar, shifting centered content back to the right.

Please note that this will only work if the scrollable element uses the page's entire width, but this should be no problem most of the time because there are only few other cases where you have centered scrollable content.