Changing the text box slider colour and padding

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
Posts: 137
Joined: Thu Sep 17, 2009 7:39 pm

Fri Oct 23, 2020 2:25 pm

When adding a text box and activating the scroll ability, how can I change the scroll bar colour and also the padding? At the moment its the standard grey colour and the text sits right up to the scroll box. Thanks!
User avatar
Posts: 11125
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK

Fri Oct 23, 2020 6:16 pm

The text box just uses the standard CSS.
What you can do is use the scroll area element, this gives you more options.
So make your text box the size it has to be, so a fixed size.
Then add that to the scroll area.

Or if you look at the HTML page you will see in the head section the scroll area CSS styling.
The only downside to this is with every output it will get overwritten, so output it once then edit the index.html page name to something like index_scroll.html.
Then always use this, so output, delete the index, HTML page, copy the index_scroll.html and rename it to index.html.

Or just wait until you have finished the tour and do it just before testing.
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
Posts: 137
Joined: Thu Sep 17, 2009 7:39 pm

Mon Oct 26, 2020 10:45 am

Makes perfect sense, thanks Hopki!
Post Reply