Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<style>
body {
margin: 0px;
}
.grid-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
width: 430px;
height: 430px;
}
.grid-container>div {
z-index: 2
}
.grid-item {
background-color: gray;
opacity: 0.5;
border: 1px solid #000;
}
.row-gap1 {
position: absolute;
height: 0px;
top: 102.5px;
left: 0px;
width: 430px;
border-bottom: solid 5px red;
}
.row-gap2 {
position: absolute;
height: 0px;
top: 212.5px;
left: 0px;
width: 430px;
border-bottom: solid 5px red;
}
.row-gap3 {
position: absolute;
height: 0px;
display: flex;
top: 322.5px;
left: 0px;
border-bottom: solid 5px red;
width: 430px;
}
.col-gap1 {
position: absolute;
width: 0;
height: 430px;
border-left: solid 5px blue;
top: 0px;
left: 102.5px;
}
.col-gap2 {
position: absolute;
width: 0;
height: 430px;
top: 0px;
left: 212.5px;
border-left: solid 5px blue;
}
.col-gap3 {
position: absolute;
width: 0;
height: 430px;
top: 0px;
left: 322.5px;
border-left: solid 5px blue;
}
</style>
<div class="grid-container">
<div class="grid-item" style="grid-column: 1 / 3; grid-row: 1 / 2;"></div>
<div class="grid-item" style="grid-column: 3 / 4; grid-row: 1 / 3;"></div>
<div class="grid-item" style="grid-row: 2 / 4;"></div>
<div class="grid-item" style="grid-column: 2 / 4; grid-row: 3 / 4;"></div>
<div class="grid-item" style="grid-column: 2 / 3; grid-row: 2 / 3;"></div>
<div class="grid-item" style="grid-column: 4 / 5; grid-row: 1 / 4;"></div>
<div class="grid-item" style="grid-column: 1 / 4; grid-row: 4 / 5;"></div>
<div class="grid-item" style="grid-column: 4 / 5; grid-row: 4 / 5;"></div>
</div>
<div class="row-gap1"></div>
<div class="row-gap2"></div>
<div class="row-gap3"></div>
<div class="col-gap1"></div>
<div class="col-gap2"></div>
<div class="col-gap3"></div>