This page contains scrollbox color code and examples. You can copy/paste this HTML code into your website or blog.
Just like with any other HTML element, you can set the background color, the color of the text, and other properties. Here are some of the more common ways of setting the color of HTML scrollboxes.
To change the background color of your scrollbox, use the CSS background-color property. Example:
Use the CSS ‘background-color’ property to change the background color of your HTML scrollboxes.
You can also change the text color within your scrollbox. To do this, use the CSS color property. Example:
Use the CSS ‘color’ property to change the color of the text within your HTML scrollbox.
You can even change the color of the scrollbars. To do this, use the scrollbar-base-color property.
Note that the scrollbar-base-color property is not an official CSS property and only works on some browsers. If the following example doesn’t seem to work for you, it’s probably because your browser doesn’t support the scrollbar-base-color property. Try Internet Explorer if you have it.
Use the CSS ‘scrollbar-base-color’ property to change the color of the scrollbars attached to your HTML scrollboxes.
You can change the border color of your scrollbox using the CSS border property. When you do this, you also need to specify how wide the border is and the style of the border. More about scrollbox borders.
Use the CSS ‘border’ property to change the color of the borders around your HTML scrollbox.