Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<link rel="author" title="Kevin Babbitt" href="mailto:kbabbitt@microsoft.com">
<style>
body {
margin: 0px;
}
.section {
position: relative;
margin-bottom: 20px;
}
.flex {
display: flex;
flex-wrap: wrap;
column-gap: 10px;
row-gap: 10px;
width: 110px;
height: 170px;
}
.flex > * {
background: lightgray;
width: 50px;
height: 50px;
}
.flex > :first-child {
background: salmon;
}
.col-rule {
position: absolute;
left: 0px;
height: 10px;
width: 110px;
background: blue;
}
.row-rule {
position: absolute;
top: 0px;
left: 50px;
width: 10px;
height: 170px;
background: red;
}
</style>
<div class="section">
<div class="col-rule" style="top: 50px;"></div>
<div class="col-rule" style="top: 110px;"></div>
<div class="row-rule"></div>
<div class="flex" style="writing-mode: vertical-rl;">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div class="section">
<div class="col-rule" style="top: 50px;"></div>
<div class="col-rule" style="top: 110px;"></div>
<div class="row-rule"></div>
<div class="flex" style="writing-mode: vertical-lr;">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div class="section">
<div class="col-rule" style="top: 50px;"></div>
<div class="col-rule" style="top: 110px;"></div>
<div class="row-rule"></div>
<div class="flex" style="writing-mode: sideways-rl;">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div class="section">
<div class="col-rule" style="top: 50px;"></div>
<div class="col-rule" style="top: 110px;"></div>
<div class="row-rule"></div>
<div class="flex" style="writing-mode: sideways-lr;">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>