Susy 2 Gallery and Gutter

637 Views Asked by At

I'm using the Susy 2 Gallery feature and would like to know how to influence the width of the vertical and horizontal gutters between each image in the gallery.

At the moment, there is not enough width between the images.

2

There are 2 best solutions below

2
Miriam Suzanne On

The horizontal gutters are controlled with the gutters setting in the $susy map. They are set as a fraction of the column width. See the docs. Vertical gutters are handled by you, manually. Add vertical margins as you like. If you want them to match the horizontal gutters, you can use the Susy gutter() function (e.g. margin-bottom: gutter();).

0
Jon On

you can do something like:

@include gallery(2 of 12 split);
margin-bottom: gutter(); // the same as gutter(12)

splitting the gutters between images and giving the bottom gutter the width of two split gutters.