Skip to content

Instantly share code, notes, and snippets.

@alicethewhale
Last active December 12, 2018 11:16
Show Gist options
  • Save alicethewhale/b38c867a4401d0165e40a5a00ea7e22b to your computer and use it in GitHub Desktop.
Save alicethewhale/b38c867a4401d0165e40a5a00ea7e22b to your computer and use it in GitHub Desktop.
<style>
.grid {
grid-column-end: span 3;
display: grid;
grid-gap: 2px;
grid-template-areas:
"A B C"
"D E F"
"G H I";
}
</style>
<div class="grid">
<button class="tile tile--1" style="--area:A"></button>
<button class="tile tile--2" style="--area:B"></button>
<button class="tile tile--3" style="--area:C"></button>
<button class="tile tile--4" style="--area:D"></button>
<button class="tile tile--5" style="--area:E"></button>
<button class="tile tile--6" style="--area:F"></button>
<button class="tile tile--7" style="--area:G"></button>
<button class="tile tile--8" style="--area:H"></button>
<div class="tile tile--empty" style="--area:I"></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment