Changing the text box slider colour and padding

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
panovrlover
Posts: 133
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
Hopki
Gnome
Posts: 10859
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Fri Oct 23, 2020 6:16 pm

HI,
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.
Regards,
Hopki
Garden Gnome Software Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
panovrlover
Posts: 133
Joined: Thu Sep 17, 2009 7:39 pm

Mon Oct 26, 2020 10:45 am

Makes perfect sense, thanks Hopki!
Post Reply