Last active
December 12, 2019 07:45
-
-
Save kenwheeler/8583bc8f10cef7a28e4a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
<div class="container"> | |
<div class="column"></div> | |
<div class="column"></div> | |
<div class="column"></div> | |
<div class="column"></div> | |
</div> |
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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
$container-width: 100%; | |
$column-count: 4; | |
$margin: 1%; | |
.container { | |
width: $container-width; | |
} | |
.column { | |
background: #1abc9c; | |
height: 200px; | |
display: block; | |
float: left; | |
width: ($container-width / $column-count) - ($margin * 2); | |
margin: 0 $margin; | |
} |
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
.container { | |
width: 100%; | |
} | |
.column { | |
background: #1abc9c; | |
height: 200px; | |
display: block; | |
float: left; | |
width: 23%; | |
margin: 0 1%; | |
} |
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
<div class="container"> | |
<div class="column"></div> | |
<div class="column"></div> | |
<div class="column"></div> | |
<div class="column"></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment