Is there a way to change the color of the scroll bar in an Inline Frame?

All WYSIWYG Web Builder support issues that are not covered in the forums below.
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
Post Reply
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?

Post by Beth »

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.
User avatar
BaconFries
 
 
Posts: 6246
Joined: Thu Aug 16, 2007 7:32 pm

Re: Is there a way to change the color of the scroll bar in an Inline Frame?

Post by BaconFries »

Maybe the following NiceScroll Extension
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?

Post by Beth »

Thanks but it doesn't work for me. Maybe there's an html code that works right on the Inline frame object?
User avatar
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?

Post by Pablo »

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.
User avatar
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?

Post by crispy68 »

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?

Post by Beth »

Thank you - Now, if I only knew how to write CSS!
User avatar
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?

Post by crispy68 »

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?

Post by Beth »

Yes, it is on my site.
User avatar
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?

Post by crispy68 »

Add the following between the head tags of the page:

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>
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.
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?

Post by Beth »

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.
Post Reply