concept

outer-display-type — CSS reference

The outer type determines how the principal box participates among its siblings. Block and inline are common choices. It is independent of the inner formatting model in many combinations; blockification can alter it under certain layout conditions.

Formal Syntax & Structure

css syntaxcss
display: <outside> <inside>;

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{display:inline flow-root;width:140px;vertical-align:top}#a,#b{height:20px}#c{display:inline-block;vertical-align:top}</style><body><div id="p"><div class="tile" id="a">First</div><div class="tile" id="b">Second</div></div><span id="c">Peer</span></body></html>
CSS Reference