Last active
May 9, 2018 13:13
-
-
Save tonifisler/c3995786da24f8a47610d05bfaf8b034 to your computer and use it in GitHub Desktop.
CSS Grid article
This file contains hidden or 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
.content aside { | |
grid-column: sidebar2; | |
} |
This file contains hidden or 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
.content figure { | |
grid-column: content-wide; | |
} |
This file contains hidden or 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
.content > * { | |
grid-column: content; | |
} |
This file contains hidden or 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
.content { | |
display: grid; | |
grid-template-columns: | |
[full-start sidebar1-start] 1fr | |
[content-wide-start] 1fr | |
[sidebar1-end content-start] repeat(6, 1fr) | |
[content-end] 1fr | |
[content-wide-end sidebar2-start] repeat(3, 1fr) | |
[sidebar2-end full-end]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment