Skip to content

Instantly share code, notes, and snippets.

@agusputra
Last active January 28, 2022 23:38
Show Gist options
  • Save agusputra/0ac50409e406cb6ff219d2e7c7ad5b67 to your computer and use it in GitHub Desktop.
Save agusputra/0ac50409e406cb6ff219d2e7c7ad5b67 to your computer and use it in GitHub Desktop.
/* Modified from: https://css-tricks.com/dont-overthink-it-grids/ */
.row {
margin: 0 -20px;
}
.row:after {
content: "";
display: table;
clear: both;
}
[class*='col-'] {
float: left;
padding: 0 20px;
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}
.col-50 {
width: 50%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment