Last active
August 29, 2015 14:03
-
-
Save Usse/e11641b458fe47b30627 to your computer and use it in GitHub Desktop.
Simple grid system
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
.row{ | |
@for $i from 1 through 12 { | |
.grid-#{$i} { | |
width: 100% / 12 * $i; | |
float: left; | |
} | |
} | |
clear: both | |
} |
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
<div class="row"> | |
<div class="grid-6">Column A</div> | |
<div class="grid-6">Column B</div> | |
</div> | |
<div class="row"> | |
<div class="grid-4">Column A</div> | |
<div class="grid-4">Column B</div> | |
<div class="grid-4">Column C</div> | |
</div> | |
<div class="row"> | |
<div class="grid-8">Column B</div> | |
<div class="grid-4">Column C</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment