Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="help" href="https://drafts.csswg.org/css-grid-3/">
<style>
body { margin: 0; }
.lanes {
display: grid-lanes;
grid-template-columns: repeat(3, 100px);
grid-lanes-pack: dense;
flow-tolerance: 0;
column-gap: 20px;
row-gap: 16px;
background: #cdd5e0;
width: max-content;
}
.lanes > div {
background: #5b8def;
}
.lanes > div.a { grid-column: 1; height: 24px; }
.lanes > div.b { grid-column: 2; height: 88px; }
.lanes > div.c { grid-column: 3; height: 240px; }
.lanes > div.s { grid-column: 2 / span 2; height: 48px; background: #8a6df0; }
.lanes > div.d { grid-column: 1 / span 2; height: 64px; background: #8a6df0; }
.lanes > div.f { grid-column: 1; height: 40px; background: #1f9d6b; }
.col-rule { position: absolute; width: 0; border-left: 4px solid blue; }
.row-rule { position: absolute; height: 0; border-top: 4px solid gold; }
</style>
<div class="lanes">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
<div class="s"></div>
<div class="d"></div>
<div class="f"></div>
</div>
<div class="col-rule" style="left: 108px; top: 0; height: 88px;"></div>
<div class="col-rule" style="left: 108px; top: 184px; height: 120px;"></div>
<div class="col-rule" style="left: 228px; top: 0; height: 240px;"></div>
<div class="row-rule" style="top: 30px; left: 0; width: 100px;"></div>
<div class="row-rule" style="top: 94px; left: 0; width: 100px;"></div>
<div class="row-rule" style="top: 94px; left: 120px; width: 100px;"></div>
<div class="row-rule" style="top: 246px; left: 120px; width: 100px;"></div>
<div class="row-rule" style="top: 246px; left: 240px; width: 100px;"></div>