concept
inline-layout — CSS reference
Inline formatting arranges text and inline-level boxes into lines. Inline boxes may split across lines; atomic inline boxes stay together. Alignment, line-height, writing direction and wrapping rules affect their geometry.
Formal Syntax & Structure
css syntaxcss
display: inline;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{width:80px}#a{font:16px/20px monospace}</style><body><div id="p"><span id="a">one two three four five six</span></div></body></html>