Is there a way to change the color of the scroll bar in an Inline Frame?
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
-
Beth
-

- Posts: 120
- Joined: Mon Jan 15, 2018 10:55 pm
Is there a way to change the color of the scroll bar in an Inline Frame?
Is there a way to change the color of the scroll bar in an Inline Frame? I'm sure it's an html thing, maybe? Thanks.
- BaconFries
-

- Posts: 6246
- Joined: Thu Aug 16, 2007 7:32 pm
-
Beth
-

- Posts: 120
- Joined: Mon Jan 15, 2018 10:55 pm
Re: Is there a way to change the color of the scroll bar in an Inline Frame?
Thanks but it doesn't work for me. Maybe there's an html code that works right on the Inline frame object?
- Pablo
- Posts: 24243
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: Is there a way to change the color of the scroll bar in an Inline Frame?
Did you try this?
https://www.wysiwygwebbuilder.com/customscrollbars.html
Note that the scrollbar of an inline fame is part of the page that is displayed inside the frame.
So, that page controls the color of the scrollbars.
https://www.wysiwygwebbuilder.com/customscrollbars.html
Note that the scrollbar of an inline fame is part of the page that is displayed inside the frame.
So, that page controls the color of the scrollbars.
- crispy68
-

- Posts: 3166
- Joined: Thu Oct 23, 2014 12:43 am
- Location: Acworth, GA
- Contact:
Re: Is there a way to change the color of the scroll bar in an Inline Frame?
You can't change the color of the scrollbar of an iframe from the parent page. This can only be done on the document loaded inside the iframe. If you have access to the page being loaded in the iframe, then you can add CSS to that page to change the scrollbar color.
-
Beth
-

- Posts: 120
- Joined: Mon Jan 15, 2018 10:55 pm
Re: Is there a way to change the color of the scroll bar in an Inline Frame?
Thank you - Now, if I only knew how to write CSS!
- crispy68
-

- Posts: 3166
- Joined: Thu Oct 23, 2014 12:43 am
- Location: Acworth, GA
- Contact:
Re: Is there a way to change the color of the scroll bar in an Inline Frame?
Do you have access to the page in the inline frame?
-
Beth
-

- Posts: 120
- Joined: Mon Jan 15, 2018 10:55 pm
Re: Is there a way to change the color of the scroll bar in an Inline Frame?
Yes, it is on my site.
- crispy68
-

- Posts: 3166
- Joined: Thu Oct 23, 2014 12:43 am
- Location: Acworth, GA
- Contact:
Re: Is there a way to change the color of the scroll bar in an Inline Frame?
Add the following between the head tags of the page:
This will only affect webkit browsers like Chrome, Edge, Vivaldi, Brave, Opera, etc. Firefox doesnt support it very much. Change the values to your liking.
Code: Select all
<style>
::-webkit-scrollbar{width:20px;}
::-webkit-scrollbar-track{background:#f1f1f1;}
::-webkit-scrollbar-thumb{background:#888;}
::-webkit-scrollbar-thumb:hover{background:#ff0000;}
</style>
-
Beth
-

- Posts: 120
- Joined: Mon Jan 15, 2018 10:55 pm
Re: Is there a way to change the color of the scroll bar in an Inline Frame?
Thank you so very much Crispy68. That works great and provides some definition to the object.
I'll add it to my long list of codes and snippits that I pick up from this helpful forum.
I'll add it to my long list of codes and snippits that I pick up from this helpful forum.