DEV Community

Discussion on: Describe Block Formatting Context and how it works.

Collapse
 
alohci profile image
Nicholas Stimpson

Your very last sentence is incorrect. display:flex and display:grid will establish a flex formatting context and a grid formatting context respectively, not a block formatting context. Flex items and grid items will often do so, depending on their own computed display value. Most table-* boxes do not establish BFCs. The ones that do are table-cell and table-caption.