Block inner spacings

Spacings between blocks (columns and grids) can be set using simple classes.

Spacings (Gutters, gaps)

Gutters are the paddings between blocks used to place and align elements in the shopping experience.

The Grid gap (1) field can be used to define an inner distance (2, 3) between the individual blocks in a layout or column grid.

You will only find this setting for Zenit column and layout elements.

Advanced spacings (Gutters, gaps)

Gutters are the paddings between blocks used to place and align elements in the shopping experience.

These spacings settings in the layout usually apply to all end devices. There are special classes to set these distances responsively - i.e. for different devices from smartphones to desktop devices. To do this, use breakpoint-specific classes to change horizontal spacing, vertical spacing, or all spacing.

To do this, the Inner Grid gap field should not contain a value.

A complete list of all classes can be found below. You can also derive them according to the following scheme: .zen-cms-g{Achse}-{Viewport}-{Größe}

Example: zen-cms-gx-sm-1 = horizontal distance from small devices in size 1

Set up

Choose a Block (3) which should receive the CSS class for the spacing and enter one or more CSS class names in the CSS classes (4) field.

The class names are entered without dot notation. Multiple CSS class names are entered separated by spaces.

Horizontal spacings (x-axis)

.zen-cms-gx-* classes can be used to set horizontal spacings.

CSS classhorizontal spacing

.zen-cms-gx-0

0

.zen-cms-gx-1

XS

.zen-cms-gx-2

SM

.zen-cms-gx-3

MD

.zen-cms-gx-4

LG

.zen-cms-gx-5

XL

Example:

Vertical spacings (y-axis)

.zen-cms-gy-* classes can be used to set vertical spacings.

CSS classvertcial spacing

.zen-cms-gy-0

0

.zen-cms-gy-1

XS

.zen-cms-gy-2

SM

.zen-cms-gy-3

MD

.zen-cms-gy-4

LG

.zen-cms-gy-5

XL

Example:

Horizontal & vertical spacings

.zen-cms-g-* classes can be used to set horizontal and vertical spacings simultaneously.

CSS classSpacing

.zen-cms-g-0

0

.zen-cms-g-1

XS

.zen-cms-g-2

SM

.zen-cms-g-3

MD

.zen-cms-g-4

LG

.zen-cms-g-5

XL

Example:

Last updated