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-grid-3/">
<style>
body { margin: 0; }
.lanes {
display: grid-lanes;
grid-template-rows: repeat(3, 60px);
gap: 20px;
background: #cdd5e0;
width: max-content;
}
.lanes > div { background: #5b8def; }
.a { grid-row: 1; width: 80px; }
.b { grid-row: 1; width: 60px; }
.c { grid-row: 2; width: 80px; }
.d { grid-row: 3; width: 120px; }
.e { grid-row: 3; width: 60px; }
.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="d"></div>
<div class="e"></div>
</div>
<div class="col-rule" style="left: 88px; top: 10px; height: 34px;"></div>
<div class="col-rule" style="left: 128px; top: 168px; height: 48px;"></div>
<div class="row-rule" style="top: 68px; left: 0; width: 200px;"></div>
<div class="row-rule" style="top: 148px; left: 0; width: 200px;"></div>