--- url: "https://web.dev/blog/baseline-scrollbar-props" titulek: "CSS scrollbar-gutter and scrollbar-width are Baseline Newly available | Articles | web.dev" h1: "CSS scrollbar-gutter and scrollbar-width are Baseline Newly available Stay organized with collections Save and categorize content based on your preferences." popis: "CSS scrollbar-gutter and scrollbar-width have landed in all major browser engines, making it Baseline Newly available." jazyk: "en" kanonicka: "https://web.dev/blog/baseline-scrollbar-props" drobecky: ["Articles", "CSS scrollbar-gutter and scrollbar-width are Baseline Newly available"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 00:57:22" znaku: 1272 slov: 158 kodovani: "iso-8859-2" sha256: "d4a879ceafceb3b72d78938f38f4c54c8c1beff0a89dfeb3768d37ea2bb2a6eb" --- CSS scrollbar-gutter and scrollbar-width are Baseline Newly available Stay organized with collections Save and categorize content based on your preferences. Bramus Published: Feb 1, 2025 With the `scrollbar-gutter` property you can reserve space for the scrollbar even when no scrollbar is needed. This prevents a layout shift should a scrollbar become necessary. This property only has an effect when [classic scrollbars](https://developer.chrome.com/docs/css-ui/scrollbar-styling#classic_and_overlay_scrollbars) are used. Using `scrollbar-width` you can opt-in to a narrower scrollbar, or even to hide the scrollbar completely without affecting scrollability. Learn more about scrollbars and how to style them in [scrollbar styling](https://developer.chrome.com/docs/css-ui/scrollbar-styling). Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates. Last updated 2025-02-01 UTC.