2016-09-11 11:00:49 +00:00
---
2017-07-29 12:02:00 +00:00
title: Columns powered by Flexbox
2016-09-11 11:00:49 +00:00
layout: documentation
doc-tab: grid
doc-subtab: columns
---
2017-08-14 22:56:44 +00:00
< meta http-equiv = "refresh" content = "0; url={{ site.url }}/documentation/columns/basics/" >
2017-08-14 12:59:16 +00:00
{% capture columns %}
< div class = "columns" >
< div class = "column" >
First column
< / div >
< div class = "column" >
Second column
< / div >
< div class = "column" >
Third column
< / div >
< div class = "column" >
Fourth column
< / div >
< / div >
{% endcapture %}
{% capture columns_sizes %}
2017-10-18 10:49:33 +00:00
< div class = "columns" >
< div class = "column is-four-fifths" >
< p class = "bd-notification is-info" >
< code class = "html" > is-four-fifths< / code >
< / p >
< / div >
< div class = "column" >
< p class = "bd-notification is-warning" > Auto< / p >
< / div >
< / div >
2017-08-14 12:59:16 +00:00
< div class = "columns" >
< div class = "column is-three-quarters" >
< p class = "bd-notification is-info" >
< code class = "html" > is-three-quarters< / code >
< / p >
< / div >
< div class = "column" >
< p class = "bd-notification is-warning" > Auto< / p >
< / div >
< div class = "column" >
< p class = "bd-notification is-danger" > Auto< / p >
< / div >
< / div >
< div class = "columns" >
< div class = "column is-two-thirds" >
< p class = "bd-notification is-info" >
< code class = "html" > is-two-thirds< / code >
< / p >
< / div >
< div class = "column" >
< p class = "bd-notification is-warning" > Auto< / p >
< / div >
< div class = "column" >
< p class = "bd-notification is-danger" > Auto< / p >
< / div >
< / div >
< div class = "columns" >
< div class = "column is-half" >
< p class = "bd-notification is-info" >
< code class = "html" > is-half< / code >
< / p >
< / div >
< div class = "column" >
< p class = "bd-notification is-warning" > Auto< / p >
< / div >
< div class = "column" >
< p class = "bd-notification is-danger" > Auto< / p >
< / div >
< / div >
< div class = "columns" >
< div class = "column is-one-third" >
< p class = "bd-notification is-info" >
< code class = "html" > is-one-third< / code >
< / p >
< / div >
< div class = "column" >
< p class = "bd-notification is-success" > Auto< / p >
< / div >
< div class = "column" >
< p class = "bd-notification is-warning" > Auto< / p >
< / div >
< / div >
< div class = "columns" >
< div class = "column is-one-quarter" >
< p class = "bd-notification is-info" >
< code class = "html" > is-one-quarter< / code >
< / p >
< / div >
< div class = "column" >
< p class = "bd-notification is-success" > Auto< / p >
< / div >
< / div >
2017-10-18 10:49:33 +00:00
< div class = "columns" >
< div class = "column is-one-fifth" >
< p class = "bd-notification is-info" >
< code class = "html" > is-one-fifth< / code >
< / p >
< / div >
< div class = "column" >
< p class = "bd-notification is-success" > Auto< / p >
< / div >
< div class = "column" >
< p class = "bd-notification is-warning" > Auto< / p >
< / div >
< div class = "column" >
< p class = "bd-notification is-danger" > Auto< / p >
< / div >
< / div >
2017-08-14 12:59:16 +00:00
{% endcapture %}
{% capture columns_offset %}
< div class = "columns is-mobile" >
< div class = "column is-half is-offset-one-quarter" > < / div >
< / div >
< div class = "columns is-mobile" >
< div class = "column is-4 is-offset-8" > < / div >
< / div >
< div class = "columns is-mobile" >
< div class = "column is-11 is-offset-1" > < / div >
< / div >
{% endcapture %}
{% capture columns_mobile_centered %}
< div class = "columns is-mobile is-centered" >
< div class = "column is-half is-narrow" >
< p class = "bd-notification is-info" >
< code class = "html" > is-half< / code > < br >
< code class = "html" > is-narrow< / code >
< / p >
< / div >
< / div >
{% endcapture %}
{% capture columns_mobile_multiline_centered %}
< div class = "columns is-mobile is-multiline is-centered" >
< div class = "column is-narrow" >
< p class = "bd-notification is-info" >
< code class = "html" > is-narrow< / code > < br >
First Column
< / p >
< / div >
< div class = "column is-narrow" >
< p class = "bd-notification is-success" >
< code class = "html" > is-narrow< / code > < br >
Our Second Column
< / p >
< / div >
< div class = "column is-narrow" >
< p class = "bd-notification is-danger" >
< code class = "html" > is-narrow< / code > < br >
Third Column
< / p >
< / div >
< div class = "column is-narrow" >
< p class = "bd-notification is-info" >
< code class = "html" > is-narrow< / code > < br >
The Fourth Column
< / p >
< / div >
< div class = "column is-narrow" >
< p class = "bd-notification is-success" >
< code class = "html" > is-narrow< / code > < br >
Fifth Column
< / p >
< / div >
< / div >
{% endcapture %}
{% capture columns_mobile %}
< div class = "columns is-mobile" >
< div class = "column" > 1< / div >
< div class = "column" > 2< / div >
< div class = "column" > 3< / div >
< div class = "column" > 4< / div >
< / div >
{% endcapture %}
{% capture columns_desktop %}
< div class = "columns is-desktop" >
< div class = "column" > 1< / div >
< div class = "column" > 2< / div >
< div class = "column" > 3< / div >
< div class = "column" > 4< / div >
< / div >
{% endcapture %}
{% capture columns_multiple_breakpoints %}
< div class = "columns is-mobile" >
< div class = "column is-half-mobile is-one-third-tablet is-one-quarter-desktop" >
< code > is-half-mobile< / code > < br >
< code > is-one-third-tablet< / code > < br >
< code > is-one-quarter-desktop< / code >
< / div >
< div class = "column" > 1< / div >
< div class = "column" > 1< / div >
< div class = "column" > 1< / div >
< div class = "column" > 1< / div >
< / div >
{% endcapture %}
{% capture columns_nesting %}
< div class = "columns" >
< div class = "column" >
First column
< div class = "columns is-mobile" >
< div class = "column" >
First nested column
< / div >
< div class = "column" >
Second nested column
< / div >
< / div >
< / div >
< div class = "column" >
Second column
< div class = "columns is-mobile" >
< div class = "column is-half" >
50%
< / div >
< div class = "column" >
Auto
< / div >
< div class = "column" >
Auto
< / div >
< / div >
< / div >
< / div >
{% endcapture %}
{% capture columns_multiline %}
< div class = "columns is-multiline is-mobile" >
< div class = "column is-one-quarter" >
< code > is-one-quarter< / code >
< / div >
< div class = "column is-one-quarter" >
< code > is-one-quarter< / code >
< / div >
< div class = "column is-one-quarter" >
< code > is-one-quarter< / code >
< / div >
< div class = "column is-one-quarter" >
< code > is-one-quarter< / code >
< / div >
< div class = "column is-half" >
< code > is-half< / code >
< / div >
< div class = "column is-one-quarter" >
< code > is-one-quarter< / code >
< / div >
< div class = "column is-one-quarter" >
< code > is-one-quarter< / code >
< / div >
< div class = "column" >
Auto
< / div >
< / div >
{% endcapture %}
{% capture columns_gapless %}
< div class = "columns is-gapless" >
< div class = "column" > First column< / div >
< div class = "column" > Second column< / div >
< div class = "column" > Third column< / div >
< div class = "column" > Fourth column< / div >
< / div >
{% endcapture %}
{% capture columns_gapless_multiline %}
< div class = "columns is-gapless is-multiline is-mobile" >
< div class = "column is-one-quarter" >
< code > is-one-quarter< / code >
< / div >
< div class = "column is-one-quarter" >
< code > is-one-quarter< / code >
< / div >
< div class = "column is-one-quarter" >
< code > is-one-quarter< / code >
< / div >
< div class = "column is-one-quarter" >
< code > is-one-quarter< / code >
< / div >
< div class = "column is-half" >
< code > is-half< / code >
< / div >
< div class = "column is-one-quarter" >
< code > is-one-quarter< / code >
< / div >
< div class = "column is-one-quarter" >
< code > is-one-quarter< / code >
< / div >
< div class = "column" >
Auto
< / div >
< / div >
{% endcapture %}
{% capture columns_narrow %}
< div class = "columns" >
< div class = "column is-narrow" >
< div class = "box" style = "width: 200px;" >
< p class = "title is-5" > Narrow column< / p >
< p class = "subtitle" > This column is only 200px wide.< / p >
< / div >
< / div >
< div class = "column" >
< div class = "box" >
< p class = "title is-5" > Flexible column< / p >
< p class = "subtitle" > This column will take up the remaining space available.< / p >
< / div >
< / div >
< / div >
{% endcapture %}
2018-03-26 13:46:39 +00:00
{% include subnav/subnav-grid.html %}
2016-09-11 11:00:49 +00:00
< section class = "section" >
< div class = "container" >
< h1 class = "title" > Columns< / h1 >
< h2 class = "subtitle" > A simple way to build < strong > responsive columns< / strong > < / h2 >
< hr >
< div class = "content" >
< p > To build a < strong > grid< / strong > , just:< / p >
< ol >
< li > Add a < code > columns< / code > container< / li >
< li > Add as many < code > column< / code > elements as you want< / li >
< / ol >
2016-12-23 12:13:50 +00:00
< p > Each column will have an < strong > equal width< / strong > , no matter the number of columns.< / p >
2016-09-11 11:00:49 +00:00
< / div >
2017-08-14 17:25:14 +00:00
< div class = "columns is-variable" >
2016-09-11 11:00:49 +00:00
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > First column< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success" > Second column< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning" > Third column< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > Fourth column< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
2017-08-14 12:59:16 +00:00
{% highlight html %}{{ columns }}{% endhighlight %}
2016-09-11 11:00:49 +00:00
2017-08-14 17:25:14 +00:00
{% include anchor.html name="Sizes" %}
2016-09-11 11:00:49 +00:00
< div class = "content" >
< p > If you want to change the < strong > size< / strong > of a single column, you can use one the following classes:< / p >
< ul >
< li >
< code > is-three-quarters< / code >
< / li >
< li >
< code > is-two-thirds< / code >
< / li >
< li >
< code > is-half< / code >
< / li >
< li >
< code > is-one-third< / code >
< / li >
< li >
< code > is-one-quarter< / code >
< / li >
< / ul >
< p > The < em > other< / em > columns will fill up the < strong > remaining< / strong > space automatically.< / p >
< / div >
< div class = "columns" >
< div class = "column is-three-quarters" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" >
2016-09-11 11:00:49 +00:00
< code class = "html" > is-three-quarters< / code >
< / p >
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning" > Auto< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > Auto< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
< div class = "columns" >
< div class = "column is-two-thirds" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" >
2016-09-11 11:00:49 +00:00
< code class = "html" > is-two-thirds< / code >
< / p >
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning" > Auto< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > Auto< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
< div class = "columns" >
< div class = "column is-half" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" >
2016-09-11 11:00:49 +00:00
< code class = "html" > is-half< / code >
< / p >
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning" > Auto< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > Auto< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
< div class = "columns" >
< div class = "column is-one-third" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" >
2016-09-11 11:00:49 +00:00
< code class = "html" > is-one-third< / code >
< / p >
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success" > Auto< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning" > Auto< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
< div class = "columns" >
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" >
2016-09-11 11:00:49 +00:00
< code class = "html" > is-one-quarter< / code >
< / p >
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success" > Auto< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
2017-08-14 12:59:16 +00:00
{% highlight html %}{{ columns_sizes }}{% endhighlight %}
2016-09-11 11:00:49 +00:00
< h4 class = "title is-4" > 12 columns< / h4 >
< div class = "content" >
< p > As the grid can be divided into < strong > 12< / strong > columns, there are size classes for each division:< / p >
< ul >
< li > < code > is-2< / code > < / li >
< li > < code > is-3< / code > < / li >
< li > < code > is-4< / code > < / li >
< li > < code > is-5< / code > < / li >
< li > < code > is-6< / code > < / li >
< li > < code > is-7< / code > < / li >
< li > < code > is-8< / code > < / li >
< li > < code > is-9< / code > < / li >
< li > < code > is-10< / code > < / li >
< li > < code > is-11< / code > < / li >
< / ul >
< / div >
< div class = "message is-danger" >
< p class = "message-header" > Naming< / p >
< p class = "message-body" > Each modifier class is named after < strong > how many columns you want out of 12< / strong > . So if you want 7 columns out of 12, use < code > is-7< / code > .< / p >
< / div >
< div class = "columns" >
< div class = "column is-2" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > < code > is-2< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
< div class = "columns" >
< div class = "column is-3" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > < code > is-3< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
< div class = "columns" >
< div class = "column is-4" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > < code > is-4< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
< div class = "columns" >
< div class = "column is-5" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > < code > is-5< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
< div class = "columns" >
< div class = "column is-6" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > < code > is-6< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
< div class = "columns" >
< div class = "column is-7" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > < code > is-7< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
< div class = "columns" >
< div class = "column is-8" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > < code > is-8< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
< div class = "columns" >
< div class = "column is-9" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > < code > is-9< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
< div class = "columns" >
< div class = "column is-10" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > < code > is-10< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
< div class = "columns" >
< div class = "column is-11" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > < code > is-11< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning has-text-centered" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
2017-08-14 17:25:14 +00:00
{% include anchor.html name="Offset" %}
2016-09-11 11:00:49 +00:00
< div class = "content" >
2017-08-14 12:59:16 +00:00
< p >
While you can use < em > empty columns< / em > (like < code > < div class="column"> < /div> < / code > ) to create horizontal space around < code > .column< / code > elements, you can also use < strong > offset< / strong > modifiers like < code > .is-offset-x< / code > :
< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "columns is-mobile" >
< div class = "column is-half is-offset-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" >
2016-09-11 11:00:49 +00:00
< code class = "html" > is-half< / code > < br >
< code class = "html" > is-offset-one-quarter< / code >
< / p >
< / div >
< / div >
< div class = "columns is-mobile" >
< div class = "column is-4 is-offset-8" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" >
2016-09-11 11:00:49 +00:00
< code class = "html" > is-4< / code > < br >
< code class = "html" > is-offset-8< / code >
< / p >
< / div >
< / div >
< div class = "columns is-mobile" >
< div class = "column is-11 is-offset-1" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" >
2016-09-11 11:00:49 +00:00
< code class = "html" > is-11< / code > < br >
< code class = "html" > is-offset-1< / code >
< / p >
< / div >
< / div >
2017-08-14 12:59:16 +00:00
{% highlight html %}{{ columns_offset }}{% endhighlight %}
2016-09-11 11:00:49 +00:00
2017-08-14 17:25:14 +00:00
{% include anchor.html name="Centering columns" %}
2016-09-11 11:00:49 +00:00
2017-07-31 18:20:19 +00:00
< div class = "content" >
2017-08-14 12:59:16 +00:00
< p >
While you can use < em > empty columns< / em > (like < code > < div class="column"> < /div> < / code > ) to create horizontal space around < code > .column< / code > elements, you can also use < code > .is-centered< / code > on the parent < code > .columns< / code > element:
< / p >
2017-07-31 18:20:19 +00:00
< / div >
< div class = "columns is-mobile is-centered" >
< div class = "column is-half is-narrow" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" >
2017-07-31 18:20:19 +00:00
< code class = "html" > is-half< / code > < br >
< code class = "html" > is-narrow< / code >
< / p >
< / div >
< / div >
2017-08-14 12:59:16 +00:00
{% highlight html %}{{ columns_mobile_centered }}{% endhighlight %}
2017-07-31 18:20:19 +00:00
< div class = "content" >
2017-08-14 12:59:16 +00:00
< p >
Use with < code > .is-multiline< / code > to create a flexible, centered list (try resizing to see centering in different viewport sizes):
< / p >
2017-07-31 18:20:19 +00:00
< / div >
< div class = "columns is-mobile is-multiline is-centered" >
< div class = "column is-narrow" >
2017-08-14 17:25:14 +00:00
< p class = "bd-notification is-info" style = "padding: 1.25rem 1.5rem;" >
2017-07-31 18:20:19 +00:00
< code class = "html" > is-narrow< / code > < br >
First Column
< / p >
< / div >
< div class = "column is-narrow" >
2017-08-14 17:25:14 +00:00
< p class = "bd-notification is-success" style = "padding: 1.25rem 1.5rem;" >
2017-07-31 18:20:19 +00:00
< code class = "html" > is-narrow< / code > < br >
Our Second Column
< / p >
< / div >
< div class = "column is-narrow" >
2017-08-14 17:25:14 +00:00
< p class = "bd-notification is-danger" style = "padding: 1.25rem 1.5rem;" >
2017-07-31 18:20:19 +00:00
< code class = "html" > is-narrow< / code > < br >
Third Column
< / p >
< / div >
< div class = "column is-narrow" >
2017-08-14 17:25:14 +00:00
< p class = "bd-notification is-info" style = "padding: 1.25rem 1.5rem;" >
2017-07-31 18:20:19 +00:00
< code class = "html" > is-narrow< / code > < br >
The Fourth Column
< / p >
< / div >
< div class = "column is-narrow" >
2017-08-14 17:25:14 +00:00
< p class = "bd-notification is-success" style = "padding: 1.25rem 1.5rem;" >
2017-07-31 18:20:19 +00:00
< code class = "html" > is-narrow< / code > < br >
Fifth Column
< / p >
< / div >
< / div >
2017-08-14 12:59:16 +00:00
{% highlight html %}{{ columns_mobile_multiline_centered }}{% endhighlight %}
2017-07-31 18:20:19 +00:00
2017-08-14 17:25:14 +00:00
{% include anchor.html name="Responsiveness" %}
2016-09-11 11:00:49 +00:00
< div class = "content" >
< p > By default, columns are only activated from < strong > tablet< / strong > onwards. This means columns are stacked on top of each other on < strong > mobile< / strong > .< / p >
< p > If you want columns to work on < strong > mobile too< / strong > , just add the < code > is-mobile< / code > modifier on the < code > columns< / code > container:< / p >
< / div >
< div class = "columns is-mobile" >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success" > 2< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning" > 3< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > 4< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
2017-08-14 12:59:16 +00:00
{% highlight html %}{{ columns_mobile }}{% endhighlight %}
2016-09-11 11:00:49 +00:00
< div class = "message is-info" >
< p class = "message-header" > Resize< / p >
< p class = "message-body" > If you want to see the difference, resize your browser and see < em > when< / em > the columns are stacked and when they are horizontally distributed.< / p >
< / div >
< div class = "content" >
< p > If you < em > only< / em > want columns on < strong > desktop< / strong > , just use the < code > is-desktop< / code > modifier on the < code > columns< / code > container:< / p >
< / div >
< div class = "columns is-desktop" >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success" > 2< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning" > 3< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > 4< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
2017-08-14 12:59:16 +00:00
{% highlight html %}{{ columns_desktop }}{% endhighlight %}
2016-09-11 11:00:49 +00:00
< h4 class = "title is-4" > Different sizes per breakpoint< / h4 >
< div class = "content" >
< p > You can define a < strong > column size< / strong > for < em > each< / em > viewport size: mobile, tablet, and desktop.< / p >
< / div >
< div class = "columns is-mobile" >
< div class = "column is-half-mobile is-one-third-tablet is-one-quarter-desktop" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" >
2016-09-11 11:00:49 +00:00
< code > is-half-mobile< / code > < br >
< code > is-one-third-tablet< / code > < br >
< code > is-one-quarter-desktop< / code >
< / p >
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning" > 1< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
< div class = "message is-info" >
< p class = "message-header" > Resize< / p >
< p class = "message-body" > If you want to see these classes in action, resize your browser window and see how the same column varies in width at each breakpoint.< / p >
< / div >
2017-08-14 12:59:16 +00:00
{% highlight html %}{{ columns_multiple_breakpoints }}{% endhighlight %}
2016-09-11 11:00:49 +00:00
2017-08-14 17:25:14 +00:00
{% include anchor.html name="Nesting" %}
2016-09-11 11:00:49 +00:00
2017-04-15 21:13:13 +00:00
< div class = "content" >
< p >
You can < strong > nest< / strong > columns to have more flexibility in your design. You only need to follow this structure:
< / p >
< ul >
< li >
< code > columns< / code > : top-level columns container
< ul >
< li >
< code > column< / code >
< ul >
< li >
< code > columns< / code > : nested columns
< ul >
< li >
< code > column< / code > and so on…
< / li >
< / ul >
< / li >
< / ul >
< / li >
< / ul >
< / li >
< / ul >
< p >
The difference with < a href = "#multiline" > multiline columns< / a > is the < strong > order< / strong > in the HTML code: all the < strong class = "has-text-info" > blue< / strong > columns appear < em > before< / em > the < strong class = "has-text-danger" > red< / strong > ones. Resize to a narrower viewport to see the result.
< / p >
< / div >
< div class = "columns" >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > First column< / p >
2017-04-15 21:13:13 +00:00
< div class = "columns is-mobile" >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > First nested column< / p >
2017-04-15 21:13:13 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > Second nested column< / p >
2017-04-15 21:13:13 +00:00
< / div >
< / div >
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > Second column< / p >
2017-04-15 21:13:13 +00:00
< div class = "columns is-mobile" >
< div class = "column is-half" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > 50%< / p >
2017-04-15 21:13:13 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > Auto< / p >
2017-04-15 21:13:13 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > Auto< / p >
2017-04-15 21:13:13 +00:00
< / div >
< / div >
< / div >
< / div >
2017-08-14 12:59:16 +00:00
{% highlight html %}{{ columns_nesting }}{% endhighlight %}
2017-04-15 21:13:13 +00:00
2017-08-14 17:25:14 +00:00
{% include anchor.html name="Multiline" %}
2017-04-15 21:13:13 +00:00
2016-09-11 11:00:49 +00:00
< div class = "content" >
< p > Whenever you want to start a new line, you can close a < code > columns< / code > container and start a new one. But you can also add the < code > is-multiline< / code > modifier and add < strong > more< / strong > column elements that would fit in a single row.< / p >
< / div >
< div class = "columns is-multiline is-mobile" >
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > < code > is-one-quarter< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success" > < code > is-one-quarter< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning" > < code > is-one-quarter< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > < code > is-one-quarter< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column is-half" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > < code > is-half< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success" > < code > is-one-quarter< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning" > < code > is-one-quarter< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > < code > is-one-quarter< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > Auto< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
2017-08-14 12:59:16 +00:00
{% highlight html %}{{ columns_multiline }}{% endhighlight %}
2017-08-14 17:25:14 +00:00
{% include anchor.html name="Gapless" %}
2016-09-11 11:00:49 +00:00
< div class = "content" >
< p > If you want to remove the < strong > space< / strong > between the columns, add the < code > is-gapless< / code > modifier on the < code > columns< / code > container:< / p >
< / div >
< div class = "columns is-gapless" >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > First column< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success" > Second column< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning" > Third column< / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > Fourth column< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
2017-08-14 12:59:16 +00:00
{% highlight html %}{{ columns_gapless }}{% endhighlight %}
2016-09-11 11:00:49 +00:00
< div class = "content" >
< p > You can combine it with the < code > is-multiline< / code > modifier:< / p >
< / div >
< div class = "columns is-multiline is-mobile is-gapless" >
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > < code > is-one-quarter< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success" > < code > is-one-quarter< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning" > < code > is-one-quarter< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > < code > is-one-quarter< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column is-half" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > < code > is-half< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-success" > < code > is-one-quarter< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-warning" > < code > is-one-quarter< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
2017-10-18 10:49:33 +00:00
< div class = "column is-two-fifths" >
< p class = "bd-notification is-warning" > < code > is-two-fifths< / code > < / p >
< / div >
< div class = "column is-one-fifth" >
< p class = "bd-notification is-success" > < code > is-one-fifth< / code > < / p >
< / div >
< div class = "column is-two-fifths" >
< p class = "bd-notification is-danger" > < code > is-two-fifths< / code > < / p >
< / div >
2016-09-11 11:00:49 +00:00
< div class = "column is-one-quarter" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-danger" > < code > is-one-quarter< / code > < / p >
2016-09-11 11:00:49 +00:00
< / div >
< div class = "column" >
2017-08-14 12:59:16 +00:00
< p class = "bd-notification is-info" > Auto< / p >
2016-09-11 11:00:49 +00:00
< / div >
< / div >
2017-08-14 12:59:16 +00:00
{% highlight html %}{{ columns_gapless_multiline }}{% endhighlight %}
2016-09-11 11:00:49 +00:00
2017-08-14 17:25:14 +00:00
{% include anchor.html name="Narrow column" %}
2016-09-11 11:00:49 +00:00
< div class = "content" >
< p > If you want a column to only take the < strong > space it needs< / strong > , use the < code > is-narrow< / code > modifier. The other column(s) will fill up the remaining space.< / p >
< / div >
< div class = "columns" >
< div class = "column is-narrow" >
< div class = "box" style = "width: 200px;" >
< p class = "title is-5" > Narrow column< / p >
< p class = "subtitle" > This column is only 200px wide.< / p >
< / div >
< / div >
< div class = "column" >
< div class = "box" >
< p class = "title is-5" > Flexible column< / p >
< p class = "subtitle" > This column will take up the remaining space available.< / p >
< / div >
< / div >
< / div >
2017-08-14 12:59:16 +00:00
{% highlight html %}{{ columns_narrow }}{% endhighlight %}
2016-09-11 11:00:49 +00:00
< div class = "content" >
< p > As for the size modifiers, you can have narrow columns for different < strong > breakpoints< / strong > :< / p >
< ul >
< li >
< code > is-narrow-mobile< / code >
< / li >
< li >
< code > is-narrow-tablet< / code >
< / li >
< li >
< code > is-narrow-desktop< / code >
< / li >
< / ul >
< / div >
< / div >
< / section >