property-value

display/flow — CSS reference

The inner flow type lays out children with block and inline formatting. If given alone its outer type defaults to block. A flow box may share a BFC with ancestors or establish one because of other layout conditions.

Formal Syntax & Structure

css syntaxcss
display: flow; /* block flow */

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS flow layout lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{font:16px/20px sans-serif} #p{width:240px;background:#e6eef2} .tile{background:#c2e4d5} #a,#b{box-sizing:content-box}#a,#b{display:flow}</style><body><div id="p"><span class="tile" id="a">First</span><span class="tile" id="b">Second</span></div></body></html>
CSS Reference