Tag

overflow

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 14, 2025 · Frontend Development

Handling Overflow in Flexbox: Preventing Fixed-Width Elements from Being Crushed

This article explains why a flex:1 element can cause a fixed-width sibling to be squeezed when its child exceeds the container width, and presents solutions such as using overflow:hidden, width:0, min-width:0, and analogous vertical-direction fixes.

CSSflexboxlayout
0 likes · 8 min read
Handling Overflow in Flexbox: Preventing Fixed-Width Elements from Being Crushed
KooFE Frontend Team
KooFE Frontend Team
Jan 9, 2022 · Frontend Development

How to Write Defensive CSS: Prevent Layout Issues with Flex, Grid, and Overflow

This article presents practical defensive CSS techniques—including handling justify-content space-between, image text fallbacks, fixed grid values, overflow control, and scrollbar gutter—to create robust, responsive layouts that gracefully adapt to dynamic content changes.

CSSdefensive CSSflexbox
0 likes · 6 min read
How to Write Defensive CSS: Prevent Layout Issues with Flex, Grid, and Overflow
ByteFE
ByteFE
Jan 20, 2021 · Frontend Development

Achieving overflow:hidden Effects Without Using overflow:hidden in CSS

This article explains how to clip overflowing content vertically while keeping horizontal overflow visible by using CSS techniques such as clip‑path and the contain property, providing code examples, demos, and a comparison with the traditional overflow:hidden approach.

clip-pathcontainfrontend
0 likes · 10 min read
Achieving overflow:hidden Effects Without Using overflow:hidden in CSS
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jan 9, 2018 · Frontend Development

Master Flexible Overflow: CSS Tricks for Adaptive Text Without JavaScript

This article explores how to create a flexible overflow effect using pure CSS—leveraging flex‑wrap, @supports, and container queries—to display different text snippets based on container size, while providing fallbacks for browsers that lack modern features.

CSSContainer Queriesflexbox
0 likes · 7 min read
Master Flexible Overflow: CSS Tricks for Adaptive Text Without JavaScript
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 24, 2017 · Frontend Development

How CSS3 Transform Alters Stacking, Positioning, and Overflow Behaviors

This article explains how applying CSS3 transform—even with neutral values like scale(1) or translate(0,0)—can unexpectedly change element stacking order, break fixed positioning, modify overflow handling for absolute elements, and affect 100% width calculations across browsers, illustrated with code samples and screenshots.

CSSTransformfrontend
0 likes · 7 min read
How CSS3 Transform Alters Stacking, Positioning, and Overflow Behaviors