...

/

Block Formatting Context (BFC)

Block Formatting Context (BFC)

Evaluate yourself with a quiz on the block formatting context of CSS and the creation of block formatting context in this lesson.

What is a block formatting context?

A Block Formatting Context (BFC) is part of the visual CSS rendering of a web page in which block boxes are laid out. Floats, absolutely positioned elements, inline-blocks, table-cells, table-captions, and elements with overflow other than visible establish new block formatting contexts.

A BFC is an HTML box that satisfies at least one of the following conditions:

  • The
...