Skip to content

Instantly share code, notes, and snippets.

@talaviram
Created July 21, 2019 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save talaviram/27654e3fd0dee14f5598550ae6ae1f0f to your computer and use it in GitHub Desktop.
Save talaviram/27654e3fd0dee14f5598550ae6ae1f0f to your computer and use it in GitHub Desktop.
Grid Track With All Track Column
body {
margin: 40px;
background-color: #353;
}
.wrapper {
display: grid;
grid-gap: 10px;
height: 400px;
grid-template-columns: 80px 5px 1fr;
grid-template-rows: 60px 60px 1fr;
grid-auto-columns: 1fr;
grid-auto-row: 1fr;
background-color: #555;
color: #244;
}
.separator {
background-color: red;
}
.hdr {
background-color: #444;
color: #fff;
border-radius: 5px;
padding: 20px;
font-size: 150%;
}
.trk {
background-color: #222;
color: #fff;
border-radius: 5px;
padding: 20px;
font-size: 150%;
}
.ah {
grid-area: 1 / 1;
}
.at {
grid-area: 1 / 3;
}
.bh {
grid-area: 2 / 1;
}
.bt {
grid-area: 2 / 3;
}
.ch {
grid-area: 3 / 1;
}
.ct {
grid-area: 3 / 3;
}
<div class="wrapper">
<div class="separator" style="grid-area: 1 / 2 / 4 / 2"></div>
<div class="hdr ah">8:00</div>
<div class="trk at">Track 1</div>
<div class="hdr bh">9:00</div>
<div class="trk bt">Track 2</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment