concept

anonymous-box — CSS reference

When a block container mixes ordinary inline content with block-level content, anonymous block boxes group the inline runs. Text can also be represented by anonymous inline content. These boxes are generated by layout and cannot be selected by a normal element selector.

Formal Syntax & Structure

css syntaxcss
Anonymous block / inline boxes generated by formatting (concept).

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}#p{font:16px/20px monospace}#a{height:30px}</style><body><div id="p">Before<div id="a">Block</div>After</div></body></html>
CSS Reference