Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Test: block-in-inline sandwiched between text on both sides</title>
<link rel="match" href="block-in-inline-margin-with-leading-and-trailing-text-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<meta name="assert" content="Inline text on both sides of a block-in-inline forms separate lines around the block, with margin-bottom advancing the trailing line.">
<style>
.container { width: 100px; font: 20px/1 Ahem; color: green; }
.inner { width: 100px; height: 20px; margin-bottom: 40px; background: green; }
</style>
<p>'AA' on a line, green square below, 40px gap, then 'BB' on a line.</p>
<div class="container">
<span>AA<div class="inner"></div>BB</span>
</div>