Search…

X3 Photo Gallery Support Forums

Search…
 
pede
Experienced
Topic Author
Posts: 64
Joined: 08 Apr 2019, 06:03

How to change the color of scrollbar?

09 Sep 2025, 08:03

Is there a way to change the color of the scrollbar thumb or scrollbar track on the right edge in general? 
I have already tried various CSS code snippets and saved them under Settings - Custom Code. Unfortunately, it does not work or is immediately reset. I probably did not understand it correctly and would appreciate some guidance.
Peter
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: How to change the color of scrollbar?

09 Sep 2025, 21:00

pede wrote: Is there a way to change the color of the scrollbar thumb or scrollbar track on the right edge in general? 
I have already tried various CSS code snippets and saved them under Settings - Custom Code. Unfortunately, it does not work or is immediately reset. I probably did not understand it correctly and would appreciate some guidance.
Peter
I would recommend ignoring this and keeping your default Windows and Browser-assigned scrollbar styles. First of all, scrollbar styling is pointless for mobile devices and Mac, because the scrollbar is either automatically hidden, never appears in the first place, or simply can't be styled (it's considered part of the OS interface, not the website). On Windows, you can do some basic styling, but styling will be different in different browsers Chrome, Firefox, Safari etc. Also, styling the scrollbars often leads to unwanted general behavior in how scrollbars work, and you can't anticipate how they are configured for each user.

If you really want, show me what you did or what you got now that doesn't work. I'm sure we can add some custom CSS that might work for Windows, but it's very limited, and I don't recommend it. That's why I don't do it with X3 either.
 
pede
Experienced
Topic Author
Posts: 64
Joined: 08 Apr 2019, 06:03

Re: How to change the color of scrollbar?

10 Sep 2025, 06:31

Thank you very much for the helpful explanations. Under these circumstances, I will follow your recommendation and leave it as it is.