Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
html, body {
color: black; background-color: white; font: 16px/1 monospace; padding: 0; margin: 0;
}
.grid {
display: grid;
grid-template-rows: repeat(5, 20px);
grid-template-columns: 240px;
padding: 2px;
margin: 5px;
}
item {
display: block;
color: white;
}
</style>
</head>
<body>
<div class="grid">
<item style="grid-row: 1; grid-column: 1; width: 100px; justify-self: start; background: salmon;">1</item>
<item style="grid-row: 2; grid-column: 1; width: 100px; justify-self: start; background: salmon;">2</item>
<item style="grid-row: 3; grid-column: 1; width: 40px; justify-self: start; background: salmon;">3</item>
<item style="grid-row: 4; grid-column: 1; width: 40px; justify-self: start; background: salmon;">4</item>
<item style="grid-row: 5; grid-column: 1; width: 200px; justify-self: start; background: salmon;">5</item>
<item style="grid-row: 1 / span 5; grid-column: 1; width: 40px; height: 100px; margin-left: 200px; justify-self: start; background: salmon;">6</item>
<item style="grid-row: 1 / span 4; grid-column: 1; width: 20px; height: 80px; margin-left: 180px; justify-self: start; background: darkgreen;">7</item>
<item style="grid-row: 3 / span 2; grid-column: 1; width: 20px; height: 40px; margin-left: 40px; justify-self: start; background: darkgreen;">8</item>
<item style="grid-row: 3 / span 2; grid-column: 1; width: 40px; height: 40px; margin-left: 60px; justify-self: start; background: yellow;">9</item>
</div>
<div class="grid">
<item style="grid-row: 1; grid-column: 1; width: 100px; justify-self: start; background: salmon;">1</item>
<item style="grid-row: 2; grid-column: 1; width: 100px; justify-self: start; background: salmon;">2</item>
<item style="grid-row: 3; grid-column: 1; width: 40px; justify-self: start; background: salmon;">3</item>
<item style="grid-row: 4; grid-column: 1; width: 40px; justify-self: start; background: salmon;">4</item>
<item style="grid-row: 5; grid-column: 1; width: 200px; justify-self: start; background: salmon;">5</item>
<item style="grid-row: 1 / span 5; grid-column: 1; width: 40px; height: 100px; margin-left: 200px; justify-self: start; background: salmon;">6</item>
<item style="grid-row: 3 / span 2; grid-column: 1; width: 160px; height: 40px; margin-left: 40px; justify-self: start; background: darkgreen;">7</item>
</div>
</body>
</html>