CSS overflow-block Property
Description
The overflow-block property controls how content that extends beyond an element’s box is handled along the block axis — that is, the axis determined by the document’s flow direction rather than a fixed vertical/horizontal orientation. In practice this means it decides whether overflowing content on the block-start/block-end side is clipped, allowed to render outside the box, or made available through scrolling; when scrolling is involved the element becomes a scroll container in that axis and its overflowed descendants are contained by its scrolling and clipping region.
Because it targets the logical block axis, the effect of overflow-block follows changes in writing direction and layout orientation: the same declaration can govern vertical overflow in a typical top-to-bottom page or horizontal overflow in a vertical-rl writing mode. This makes it particularly useful for internationalized layouts and adaptive components where you want overflow behavior tied to the document flow rather than a fixed dimension. Where broader control is needed, authors commonly pair it with the shorthand overflow or with the complementary inline-axis property overflow-inline to handle the other axis.
Beyond clipping and scrollability, altering block-axis overflow affects painting, hit-testing and the way content participates in layout. For example, establishing a non-visible overflow in the block axis can create a containment context for descendant content, preventing floats or child boxes from escaping and changing how background painting and stacking are applied. Because the block axis is governed by writing mode, you’ll want to consider the element’s writing-mode when reasoning about visual results and interaction—especially for components that must behave consistently across different language directions or rotated layouts.
Definition
- Initial value
- auto
- Applies to
- Block-containers, flex containers, and grid containers
- Inherited
- no
- Computed value
- as specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clip
- Animatable
- yes
- JavaScript syntax
- object.style.overflowBlock
Syntax
overflow-block: visible | hidden | clip | scroll | auto
Values
- visibleContent is not clipped and may be rendered outside the padding box's block start and block end edges.
- hiddenContent is clipped if necessary to fit the block dimension in the padding box. No scrollbars are provided.
- clipOverflow content is clipped at the element's overflow clip edge that is defined using the overflow-clip-margin property.
- scrollContent is clipped if necessary to fit in the block dimension in the padding box. Browsers display scrollbars whether or not any content is actually clipped. (This prevents scrollbars from appearing or disappearing when the content changes.) Printers may still print overflowing content.
- autoDepends on the user agent. If content fits inside the padding box, it looks the same as visible, but still establishes a new block-formatting context.
Example
Browser Support
The following information will show you the current browser support for the CSS overflow-block property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported in some modern browsers, but not all.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
