Tag

BFC

0 views collected around this technical thread.

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

Understanding the CSS Box Model and Block Formatting Context (BFC)

This article explains the CSS box model, the differences between content-box and border-box sizing, introduces the concept of Block Formatting Context (BFC), shows how to trigger BFC with various CSS properties, and demonstrates practical layout solutions with code examples.

BFCCSSbox model
0 likes · 14 min read
Understanding the CSS Box Model and Block Formatting Context (BFC)