HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

scrollbar-color

Description

The scrollbar-color property for CSS allows the author to set the colors of an element's scrollbars.

Syntax

CSS

scrollbar-color: value;

JS

object.style.scrollbarColor = "value";

Values

<'scrollbar-color'> = auto | dark | light | <color>{2}
auto

Automatically specified by the user agent.

dark

Show a dark scrollbar, which can be either a dark variant of scrollbar provided by the platform, or a custom scrollbar with dark colors.

light

Show a light scrollbar, which can be either a light variant of scrollbar provided by the platform, or a custom scrollbar with light colors.

<color>

Specifies the color using a keyword or a numerical specification.

Initial

auto

Examples

1 · auto

2 · color

3 · dark

4 · light

5 · JS