You are here: Reference > CSS > properties > scrollbar-base-color

scrollbar-base-color property

Browser support:
Specifies the main color of the scroll bar.
To manipulate the scrollbar displaying status, use the overflow property.
JavaScript page for this property: scrollbarBaseColor. You can find other example(s) there.

Possible values:

 One of the following values: 
color
The main color of the scroll bar. For the supported color values, see the colors page.
inherit
Takes the value of this property from the computed style of the parent element.
Default: this property has no default value.

Example HTML code 1:

This example illustrates the use of the scrollbar-base-color property:
<head>
    <style>
        .newScrollBar {
            scrollbar-base-color: #A0CCE0;
            overflow: scroll;
            width: 200px;
            height: 167px;
            border: 1px solid #cccccc;
        }
    </style>
</head>
<body>
    <div class="newScrollBar">
        Look at the colors of the scroll-bars.<br />
        ....................................................<br />
        ....................................................<br />
        Look at the colors of the scroll-bars.<br />
        ....................................................<br />
        ....................................................<br />
        Look at the colors of the scroll-bars.<br />
    </div>
</body>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content