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-rows: repeat(3, 100px);
grid-lanes-pack: dense;
flow-tolerance: 0;
row-gap: 20px;
column-gap: 16px;
background: #cdd5e0;
width: max-content;
}
.lanes > div {
background: #5b8def;
}
.lanes > div.a { grid-row: 1; width: 24px; }
.lanes > div.b { grid-row: 2; width: 88px; }
.lanes > div.c { grid-row: 3; width: 240px; }
.lanes > div.s { grid-row: 2 / span 2; width: 48px; background: #8a6df0; }
.lanes > div.d { grid-row: 1 / span 2; width: 64px; background: #8a6df0; }
.lanes > div.f { grid-row: 1; width: 40px; background: #1f9d6b; }
.col-rule { position: absolute; width: 0; border-left: 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: 30px; top: 0; height: 100px;"></div>
<div class="col-rule" style="left: 94px; top: 0; height: 100px;"></div>
<div class="col-rule" style="left: 94px; top: 120px; height: 100px;"></div>
<div class="col-rule" style="left: 246px; top: 120px; height: 100px;"></div>
<div class="col-rule" style="left: 246px; top: 240px; height: 100px;"></div>