Last active
July 27, 2019 12:26
-
-
Save jeserodz/c7eab11758f19af3879c687a5a7b1974 to your computer and use it in GitHub Desktop.
CSS Classes for Twelve-Column Grid
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
.col-1 { | |
width: calc(100% / 12); | |
} | |
.col-2 { | |
width: calc(100% / 6); | |
} | |
.col-3 { | |
width: calc(100% / 4); | |
} | |
.col-4 { | |
width: calc(100% / 3); | |
} | |
.col-5 { | |
width: calc(100% / 2.4); | |
} | |
.col-6 { | |
width: calc(100% / 2); | |
} | |
.col-7 { | |
width: calc(100% / 1.7142857143); | |
} | |
.col-8 { | |
width: calc(100% / 1.5); | |
} | |
.col-9 { | |
width: calc(100% / 1.3333333333); | |
} | |
.col-10 { | |
width: calc(100% / 1.2); | |
} | |
.col-11 { | |
width: calc(100% / 1.0909090909); | |
} | |
.col-12 { | |
width: calc(100% / 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment