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

scrollbar-width

Description

The scrollbar-width property for CSS allows the author to set the maximum thickness of an element's scrollbars when they are shown.

Syntax

CSS

scrollbar-width: value;

JS

object.style.scrollbarWidth = "value";

Values

<'scrollbar-width'> = auto | thin | none
auto

Automatically specified by the user agent.

thin

Implementations should use thinner scrollbars than auto when applicable.

none

Implementations must not display any scrollbar, however the element’s scrollability is not affected.

Initial

auto

Examples

1 · auto

2 · none

3 · thin

4 · JS