concept

inline-formatting-context — CSS reference

Inline-level boxes and text share line construction inside an inline formatting context. A float can reduce space available on a line. Line-height and baseline alignment determine vertical placement; an inline formatting context can exist inside a block formatting context.

Formal Syntax & Structure

css syntaxcss
Inline content in a block container (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{float:left;width:80px;height:60px;background:#72b7a5}</style><body><div id="p"><div class="tile" id="a"></div><span id="b">Text</span></div></body></html>
CSS Reference