Created
May 19, 2018 17:21
-
-
Save jgmac1106/86e578ee0af6b1048dd006c516a6a2bf to your computer and use it in GitHub Desktop.
36 cell table in CSS GRID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Is there a way to write this so I don't have to add another 33 cells manually. 12 rows with three columns */ | |
.schedule .grid-container { | |
display: grid; | |
grid-template-columns: repeat(9, 1fr); | |
grid-gap: 10px; | |
grid-auto-rows: minmax(100px, auto); | |
color: white; | |
text-align: center; | |
padding:20px 0; | |
font-size: .9em; | |
background-color: #373B44; | |
} | |
.schedule .one { | |
grid-column: 2/1 ; | |
grid-row: 1; | |
} | |
.schedule .two { | |
grid-column: 3/2; | |
grid-row: 1; | |
} | |
.schedule .three { | |
grid-column: 5/2; | |
grid-row: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment