concept

blockification — CSS reference

Certain layout conditions transform an inline outer display type into a block outer type, including floating, absolute positioning and flex/grid item participation. The inner layout model is generally retained; special cases exist for layout-internal and legacy display values. Inspect the computed display rather than assuming the authored value remains unchanged.

Formal Syntax & Structure

css syntaxcss
float: left; /* may change outer display */

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{display:inline-flex;float:left;width:80px;height:30px}#b{display:inline}</style><body><div id="p"><span class="tile" id="a">First</span><span class="tile" id="b">Second</span></div></body></html>
CSS Reference