Created
September 4, 2022 04:23
-
-
Save AakashRao-dev/f779e6791c40f6056d8ad0c0776daedf to your computer and use it in GitHub Desktop.
Using the repeat() function for grid-template-columns values
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
.grid-container { | |
display: grid; | |
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; | |
/* Using repeat function to rewrite the template columns */ | |
grid-template-columns: repeat(12, 1fr); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment