2017-08-14 17:25:14 +00:00
---
title: Column options
layout: documentation
doc-tab: columns
doc-subtab: options
2018-04-09 11:45:52 +00:00
breadcrumb:
- home
- documentation
- columns
- columns-options
2017-08-14 17:25:14 +00:00
---
{% 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 >
2017-12-20 17:13:54 +00:00
< div class = "column is-one-quarter" >
< code > is-one-quarter< / code >
< / div >
2017-08-14 17:25:14 +00:00
< div class = "column" >
Auto
< / div >
< / div >
{% endcapture %}
2017-08-14 18:12:07 +00:00
{% capture columns_mobile_centered %}
< div class = "columns is-mobile is-centered" >
2018-07-27 18:17:56 +00:00
< div class = "column is-half" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" >
2017-08-14 18:12:07 +00:00
< code class = "html" > is-half< / code > < br >
< / p >
< / div >
< / div >
{% endcapture %}
{% capture columns_mobile_multiline_centered %}
< div class = "columns is-mobile is-multiline is-centered" >
< div class = "column is-narrow" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" >
2017-08-14 18:12:07 +00:00
< code class = "html" > is-narrow< / code > < br >
First Column
< / p >
< / div >
< div class = "column is-narrow" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" >
2017-08-14 18:12:07 +00:00
< code class = "html" > is-narrow< / code > < br >
Our Second Column
< / p >
< / div >
< div class = "column is-narrow" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" >
2017-08-14 18:12:07 +00:00
< code class = "html" > is-narrow< / code > < br >
Third Column
< / p >
< / div >
< div class = "column is-narrow" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" >
2017-08-14 18:12:07 +00:00
< code class = "html" > is-narrow< / code > < br >
The Fourth Column
< / p >
< / div >
< div class = "column is-narrow" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" >
2017-08-14 18:12:07 +00:00
< code class = "html" > is-narrow< / code > < br >
Fifth Column
< / p >
< / div >
< / div >
{% endcapture %}
2018-04-09 21:25:26 +00:00
{% include elements/anchor.html name="Multiline" %}
2017-08-14 17:25:14 +00:00
2018-04-09 11:45:52 +00:00
< div class = "content" >
2018-07-25 05:07:06 +00:00
< 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 than would fit in a single row.< / p >
2018-04-09 11:45:52 +00:00
< / div >
2017-08-14 17:25:14 +00:00
2018-04-09 11:45:52 +00:00
< div class = "columns is-multiline is-mobile" >
< div class = "column is-one-quarter" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" > < code > is-one-quarter< / code > < / p >
2018-04-09 11:45:52 +00:00
< / div >
< div class = "column is-one-quarter" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" > < code > is-one-quarter< / code > < / p >
2018-04-09 11:45:52 +00:00
< / div >
< div class = "column is-one-quarter" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" > < code > is-one-quarter< / code > < / p >
2018-04-09 11:45:52 +00:00
< / div >
< div class = "column is-one-quarter" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" > < code > is-one-quarter< / code > < / p >
2018-04-09 11:45:52 +00:00
< / div >
< div class = "column is-half" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" > < code > is-half< / code > < / p >
2018-04-09 11:45:52 +00:00
< / div >
< div class = "column is-one-quarter" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" > < code > is-one-quarter< / code > < / p >
2018-04-09 11:45:52 +00:00
< / div >
< div class = "column is-one-quarter" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" > < code > is-one-quarter< / code > < / p >
2018-04-09 11:45:52 +00:00
< / div >
< div class = "column is-one-quarter" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" > < code > is-one-quarter< / code > < / p >
2018-04-09 11:45:52 +00:00
< / div >
< div class = "column" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" > Auto< / p >
2018-04-09 11:45:52 +00:00
< / div >
< / div >
2017-08-14 17:25:14 +00:00
2018-04-09 11:45:52 +00:00
{% highlight html %}{{ columns_multiline }}{% endhighlight %}
2017-08-14 18:12:07 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/anchor.html name="Centering columns" %}
2017-08-14 18:12:07 +00:00
2018-04-09 11:45:52 +00:00
< div class = "content" >
< 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 >
< / div >
2017-08-14 18:12:07 +00:00
2018-04-09 11:45:52 +00:00
< div class = "columns is-mobile is-centered" >
2018-07-27 18:17:56 +00:00
< div class = "column is-half" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" >
2018-04-09 11:45:52 +00:00
< code class = "html" > is-half< / code > < br >
< / p >
< / div >
< / div >
2017-08-14 18:12:07 +00:00
2018-04-09 11:45:52 +00:00
{% highlight html %}{{ columns_mobile_centered }}{% endhighlight %}
2017-08-14 18:12:07 +00:00
2018-04-09 11:45:52 +00:00
< div class = "content" >
< p >
Use with < code > .is-multiline< / code > to create a flexible, centered list (try resizing to see centering in different viewport sizes):
< / p >
< / div >
2017-08-14 18:12:07 +00:00
2018-04-09 11:45:52 +00:00
< div class = "columns is-mobile is-multiline is-centered" >
< div class = "column is-narrow" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" style = "padding: 1.25rem 1.5rem;" >
2018-04-09 11:45:52 +00:00
< code class = "html" > is-narrow< / code > < br >
First Column
< / p >
< / div >
< div class = "column is-narrow" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" style = "padding: 1.25rem 1.5rem;" >
2018-04-09 11:45:52 +00:00
< code class = "html" > is-narrow< / code > < br >
Our Second Column
< / p >
< / div >
< div class = "column is-narrow" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" style = "padding: 1.25rem 1.5rem;" >
2018-04-09 11:45:52 +00:00
< code class = "html" > is-narrow< / code > < br >
Third Column
< / p >
< / div >
< div class = "column is-narrow" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" style = "padding: 1.25rem 1.5rem;" >
2018-04-09 11:45:52 +00:00
< code class = "html" > is-narrow< / code > < br >
The Fourth Column
< / p >
2017-08-14 17:25:14 +00:00
< / div >
2018-04-09 11:45:52 +00:00
< div class = "column is-narrow" >
2018-04-10 10:45:48 +00:00
< p class = "bd-notification is-primary" style = "padding: 1.25rem 1.5rem;" >
2018-04-09 11:45:52 +00:00
< code class = "html" > is-narrow< / code > < br >
Fifth Column
< / p >
< / div >
< / div >
{% highlight html %}{{ columns_mobile_multiline_centered }}{% endhighlight %}