Simple Grid Layout Using SCSS

@mixin grid($col, $mgn){ float:left; margin-right:$mgn; margin-bottom:$mgn; width: ((100% - (($col - 1) * $mgn)) / $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.