Created
June 16, 2021 20:36
-
-
Save ponich/91aaffc21597275c8910328d2ab3b8bc to your computer and use it in GitHub Desktop.
simple css 12 column 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
* { | |
box-sizing: border-box; | |
} | |
.row::after { | |
content: ""; | |
clear: both; | |
display: table; | |
} | |
.col, [class*="col-"] { | |
float: left; | |
padding: 15px; | |
display: block; | |
outline: 1px dashed #848484; | |
vertical-align: top; | |
} | |
.col, .col-1 { | |
width: 8.33%; | |
} | |
.col-2 { | |
width: 16.66%; | |
} | |
.col-3 { | |
width: 25%; | |
} | |
.col-4 { | |
width: 33.33%; | |
} | |
.col-5 { | |
width: 41.66%; | |
} | |
.col-6 { | |
width: 50%; | |
} | |
.col-7 { | |
width: 58.33%; | |
} | |
.col-8 { | |
width: 66.66%; | |
} | |
.col-9 { | |
width: 75%; | |
} | |
.col-10 { | |
width: 83.33%; | |
} | |
.col-11 { | |
width: 91.66%; | |
} | |
.col-12 { | |
width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment