How can i completely remove gutters for first and last elements of row while using susy grid?
This is my mockup markup.
http://codepen.io/anon/pen/mVBmLY
$susy:(
columns: 12,
gutters:2,
gutter-position:split,
);
ul{
@include container(800px);
}
li{
@include span(4);
}
It uses "gutter-position:split". As you can see on codepen, first and last element in row still have their outside margins.
I can work around this by setting gutter-position to "after" and using "last" keyword on last element in row.
http://codepen.io/anon/pen/eJGWKE
$susy:(
columns: 12,
gutters:2,
gutter-position:after,
);
ul{
@include container(800px);
}
li{
@include span(4);
}
li:nth-of-type(3n+3){
@include span(last 4);
}
Is there any other way? Using nht-of-type selector kinda defies point of using grid for me.