Simple Grid Layout Using SCSS

@mixin grid($col, $mrgn){ float:left; margin-right:$mrgn; margin-bottom:$mrgn; width: ((100% - (($col - 1) * $mrgn)) / $col); &:nth-child(#{$col}n){ margin-right:0; } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.