Skip to content

Instantly share code, notes, and snippets.

@talaviram
Created Jul 21, 2019
Embed
What would you like to do?
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