• When posting, please be aware that artistic nudity is still nudity and not allowed under RpNation rules. Please edit your pictures accordingly!

    Remember to credit artists when using work not your own.

Help Easy way to edit the Scroll Bar


Trying my best
Roleplay Availability
Roleplay Type(s)
Hi all! I am working on my first BBCode form (yay!) and I really want to keep the scroll bar for accessibility purposes.
Does anyone know how to easily edit it?
The basic tag to create a scrollbar box are: [ scroll=100px ]text[/scroll] where the px sets the height of the box. By default, the scrollbar should be visible.

If you're trying to make a scrollbar inside of a container, you'll want to use the overflow-x and overflow-y, depending on which axis you want the scrollbar on.

Here some tutorials:
Explaining overflow
How to Always Show Scrollbars
Scrollbar Behavior
Scrollbar Colors

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris suscipit ipsum quis velit tincidunt iaculis. Sed odio sapien, volutpat quis ligula at, placerat faucibus purus. Suspendisse eget libero felis. Donec tincidunt laoreet sapien, sed fermentum velit tempus vel. Ut id elementum nunc. Sed tincidunt arcu eu commodo convallis. Quisque vehicula nibh semper tellus aliquam, sed luctus risus convallis. Cras lobortis posuere nibh a efficitur. In hac habitasse platea dictumst. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus tincidunt aliquet tellus ac ultrices. Ut sed egestas quam.

Donec sit amet tempor purus, eu faucibus ligula. Etiam urna augue, vestibulum sollicitudin tortor sed, mollis sodales purus. Quisque sit amet lobortis magna. Etiam id ligula at mauris suscipit porttitor quis quis dolor. Praesent pretium velit risus, at consectetur metus lacinia id. Nam id est sed urna sagittis lacinia sed in sem. Suspendisse vestibulum finibus elementum. Nulla lobortis mi ultrices maximus feugiat. Duis commodo iaculis metus vel imperdiet. Ut a arcu quis nibh porta placerat nec ac sapien. Aliquam erat volutpat. Curabitur pulvinar elit vel volutpat iaculis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras feugiat laoreet metus, a lobortis sem varius tincidunt. Duis quis orci erat.

Sed eu erat mauris. Ut et velit id ex efficitur facilisis. Sed finibus lobortis elit quis sodales. Ut et justo eget velit pulvinar dignissim in hendrerit lacus. Phasellus suscipit lacus sed massa lacinia euismod. Etiam accumsan rutrum justo, id consequat lectus vulputate et. Aliquam elit libero, molestie ac mattis id, tincidunt non est. Sed tempus est a quam pretium, sed egestas sem hendrerit. Nulla sodales ex vitae turpis sagittis consectetur. Phasellus quis quam egestas, aliquam dolor sit amet, vulputate metus. Phasellus congue magna nec mi molestie, sed finibus est rutrum. Donec semper sed justo in tempor. Duis rhoncus volutpat felis, id sagittis dui hendrerit vitae.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse tincidunt enim nisi, id semper nulla elementum non. Fusce in libero mauris. Nunc at velit pulvinar, varius metus id, ultrices eros. Vestibulum venenatis lectus a dolor tempor porttitor. Fusce id purus mattis, posuere nunc a, convallis ex. Ut lorem libero, fringilla ut sollicitudin sed, dapibus ac justo.
Do note that on RPN you can't edit the scrollbar appearance with selectors as shown in the above link.

You can work around it by building a gradient to the side of your box. I made this a while ago, perhaps that could give you a starting point:

[div=max-width: 500px; height: 500px; background: white;][div=width: 5px; height: 500px; background: linear-gradient(to bottom, #0089f2 50%, #DDD 50%); background-repeat: no-repeat; background-attachment: fixed;][div= position: absolute; margin-top: 5px; max-width: 500px; height: 100%; background: white; display: none][/div][/div][/div]

Users who are viewing this thread