---
source: https://iinventedlight.com/library/notes/css-overflow.md
title: "CSS overflow: clip, scroll, and style the scrollbar"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (web.dev); CC-BY-4.0 (Chrome for Developers); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: web.dev, Overflow; Chrome for Developers, Scrollbar styling. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. CC-BY-4.0 (https://developers.google.com/site-policies). Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License. Copyright Google LLC."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: css-overflow"
tags: [css, overflow, scrollbar, text-overflow, scrolling]
client: Librarian
sources:
  - id: S1
    title: "Overflow"
    publisher: web.dev
    url: https://web.dev/learn/css/overflow
    accessed: 2026-11-24
    license: "CC-BY-4.0"
  - id: S2
    title: "Scrollbar styling"
    publisher: Chrome for Developers
    url: https://developer.chrome.com/docs/css-ui/scrollbar-styling
    accessed: 2026-11-24
    license: "CC-BY-4.0"
---
# CSS overflow: clip, scroll, and style the scrollbar
**Answer:** When content extends beyond its parent, there are many options for handling it.

## Scrollbar properties

Style the scrollbar to incorporate it into your site's design.

Use the scrollbar-width and scrollbar-color properties to style scrollbars.

To change the width of the scrollbar, use scrollbar-width.

auto is the default scrollbar width as provided by the platform.

scrollbar-color sets the color for the scrollbar's thumb and gutter.

## Overflow options

You can scroll to add additional space.

The overflow properties will help control overflow in the box model.

You can clip the overflowing edges.

text-overflow will help with individual lines of text.

You can indicate the cut-off with an ellipsis.

## See also

- [css-scroll-snap](https://iinventedlight.com/library/notes/css-scroll-snap/)
- [css-layout](https://iinventedlight.com/library/notes/css-layout/)
- [css-min-max-clamp](https://iinventedlight.com/library/notes/css-min-max-clamp/)

## Claims

- id: C1
  claim: When content extends beyond its parent, there are many options for handling it.
  source: S1
  evidence: "When content extends beyond its parent, there are many options"

- id: C2
  claim: You can style your scrollbar to incorporate it into your site's design.
  source: S1
  evidence: "You can style your scrollbar to incorporate it into your site's design"

- id: C3
  claim: Scrollbar width and scrollbar color style the scrollbar.
  source: S2
  evidence: "Use the scrollbar-width and scrollbar-color properties to style scrollbars"

- id: C4
  claim: Auto is the default scrollbar width provided by the platform.
  source: S2
  evidence: "The default scrollbar width as provided by the platform"

## Sources

- [S1] Overflow. web.dev. https://web.dev/learn/css/overflow . License: CC-BY-4.0. Accessed 2026-11-24.

- [S2] Scrollbar styling. Chrome for Developers. https://developer.chrome.com/docs/css-ui/scrollbar-styling . License: CC-BY-4.0. Accessed 2026-11-24.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: web.dev, Overflow; Chrome for Developers, Scrollbar styling. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. CC-BY-4.0 (https://developers.google.com/site-policies). Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License. Copyright Google LLC. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
