concept
margin-box — CSS reference
The margin edge describes space outside the border. In a simple horizontal calculation add left and right margins to the border width. Collapsing and negative margins mean these extents need not act like a separate painted rectangle.
Formal Syntax & Structure
css syntaxcss
border area + marginsWorking Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS box geometry lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#a{box-sizing:content-box;width:100px;height:40px;padding:10px;border:5px solid #254c55;margin:20px;display:flow-root} #a span{display:block;width:100%;height:100%}</style><body><div id="a" class="sample"><span id="b">Content</span></div></body></html>