Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Test: two block-in-inlines with text between them</title>
<link rel="match" href="two-block-in-inlines-with-text-between-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<meta name="assert" content="Two block-in-inlines separated by inline text produce three vertical regions: first block, text line, second block, with margins applied between blocks.">
<style>
.container { width: 100px; font: 20px/1 Ahem; color: green; }
.first { width: 100px; height: 20px; margin-bottom: 40px; background: green; }
.second { width: 100px; height: 20px; background: green; }
</style>
<p>Green square, 40px gap, 'XX' on a line, then a green square.</p>
<div class="container">
<span><div class="first"></div>XX<div class="second"></div></span>
</div>