Custom grid in foundation?

184 Views Asked by At

I need a different sized grid within the standard grid layout.

I'm using sass and have tried:

.row-30{
    @include grid-row($total-columns: 30);
}

Here's the HTML:

<div class="row-30">
    <div class="small-5 columns">a 5 col</div>
    <div class="small-1 columns end">a 1 col</div>
</div>

I'm having no luck though. Where am I going wrong with this mixin?

1

There are 1 best solutions below

1
On BEST ANSWER

I think you also need to bring in the grid-html-classes for the size you want..

$total-columns: 30;

.row-30 {
    @include grid-row($total-columns);
    @include grid-html-classes($size:small);
}

Demo: http://codeply.com/go/QIvdO5M7Tz