how can i have the vertical scrollbar permanently visible while page loads

Posted in: Newspaper
Post count: 6

hi.
How can I have the vertical scrollbar permanently visible, so that the page does not swing to right and left while loading?
I have tried body overflow-y scroll and body overflow-y visible in custom code but it does not work. Thanks.

Post count: 27744

Hello,

Can you please provide more details about what you mean with the scroll bar? Please provide some screenshots and the link to your website.

Thank you!

Post count: 6

hi The URL is https://distritrucks.com.

It is about the right scrollbar.
When a page loads, it starts without scrollbar.
Then, as soon as the content is more than fits on the screen (“overflow-y”) the scrollbar appears.
This causes the content to shift 15 pixels or so to the left.
All in a matter of milliseconds of course, but still visible (depends also o the quality of your internet connection)

This shifting is rather irritating.

when you google, you will find scripts that make the right scrollbar permanently visible. Also when the content is not overflowing the page. Then the shifting is gone.

one of these scripts:
body {
overflow-y: scroll;
}

I have tried different of these formulas to enter in the theme panel -> custom code -> custom css. But none of them works. It is possible that the custom css is not in the right position or that other definitions overrule it.

Maybe someone has solved this issue before me. I would be grateful for a solution.

Post count: 27744

Hello,

I just checked your website, and for me, this is displayed well. Can you please provide a video of how this looks for you?
A solution for sending a screenshot/video is this:
Download, capture, and send: https://www.techsmith.com/jing-tool.html
After making the screenshot, you will have a link; paste it here.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.