Professional Documents
Culture Documents
Notes On BFC - MD
Notes On BFC - MD
Notes On BFC - MD
com/2017/12/understanding-css-layout-block-
formatting-context/
You can think of a BFC as like a mini layout inside your page. Once an element
creates a BFC, everything is contained inside it. As we have seen, this includes
floated elements which no longer poke out of the bottom of the box. The BFC also
causes some other useful behavior.
overflow: auto
column-span: all
```
You would use display: flow-root in any of the situations in this article where
creating a new BFC would be advantageous - to contain floats, to prevent margins
collapsing, or to prevent an item wrapping a float.
```