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-top: 20px;
}
.grid-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
width: 430px;
height: 430px;
}
.grid-item {
background-color: gray;
opacity: 0.5;
border: 1px solid #000;
z-index: 2;
}
.col-gap {
width: 0;
border-left: solid 5px blue;
}
.col-gap1 {
position: absolute;
top: 110px;
left: 110.5px;
height: 250px;
}
.col-gap2 {
position: absolute;
top: 0px;
left: 220.5px;
height: 250px;
}
.col-gap3 {
position: absolute;
top: 0px;
left: 330.5px;
height: 470px;
}
.row-gap {
height: 0px;
border-bottom: solid 5px red;
}
.row-gap1 {
position: absolute;
top: 122.5px;
left: 8px;
width: 215px;
}
.row-gap2 {
position: absolute;
top: 232.5px;
left: 113px;
width: 220px;
}
.row-gap3 {
position: absolute;
top: 342.5px;
left: 8px;
width: 430px;
}
</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-gap row-gap1"> </div>
<div class="row-gap row-gap2"> </div>
<div class="row-gap row-gap3"> </div>
<div class="col-gap col-gap1"> </div>
<div class="col-gap col-gap2"> </div>
<div class="col-gap col-gap3"> </div>