--- title: Columns gap layout: docs theme: library doc-library: true doc-tab: columns doc-subtab: gap breadcrumb: - home - documentation - columns - columns-gap --- {% capture columns_default_gap %}

Default gap

Default gap

Default gap

Default gap

{% endcapture %} {% capture columns_gapless %}
No gap
No gap
No gap
No gap
{% endcapture %} {% capture columns_gapless_multiline %}
is-one-quarter
is-one-quarter
is-one-quarter
is-one-quarter
is-half
is-one-quarter
is-one-quarter
is-one-quarter
Auto
{% endcapture %} {% capture columns_variable_responsive_gaps %}
Column
Column
Column
Column
Column
Column
{% endcapture %} {% include docs/elements/anchor.html name="Default gap" %}

Each column has a gap equal to the variable $column-gap, which has a default value of 0.75rem.
Since the gap is on each side of a column, the gap between two adjacent columns will be twice the value of $column-gap, or 1.5rem by default.

{{ columns_default_gap }} {% include docs/elements/anchor.html name="Gapless" %}

If you want to remove the space between the columns, add the is-gapless modifier on the columns container:

First column

Second column

Third column

Fourth column

{% highlight html -%} {{- columns_gapless -}} {%- endhighlight %}

You can combine it with the is-multiline modifier:

is-one-quarter

is-one-quarter

is-one-quarter

is-one-quarter

is-half

is-one-quarter

is-one-quarter

is-one-quarter

Auto

{% highlight html -%} {{- columns_gapless_multiline -}} {%- endhighlight %}
{% include docs/elements/anchor.html name="Variable gap" %}

You can specify a custom column gap by appending one of 9 modifiers on the .columns container.

Additionally, .is-variable should be added on the .columns container.

{% include docs/content/klmn.html %}

This feature is only available in browsers that support CSS Variables.

If your Sass setup doesn't support CSS Variables, you can disable this feature by setting $variable-columns to false.

{% assign vernum = site.data.meta.version | downcase | remove: '.' | plus: 0 %} {% if vernum >= 72 %} {% include docs/elements/anchor.html name="Breakpoint based column gaps" %}

You can define a column gap for each viewport size:

For example, here's how it looks with the following modifiers: is-variable is-2-mobile is-0-tablet is-3-desktop is-8-widescreen is-1-fullhd

{% highlight html -%} {{- columns_variable_responsive_gaps -}} {%- endhighlight %}

Column

Column

Column

Column

Column

Column

If you want to see the difference, resize your browser and see how the columns gap varies.

{% endif %}