<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>
<divclass="columns">
<divclass="column is-three-quarters">
<pclass="notification is-info">
<codeclass="html">is-three-quarters</code>
</p>
</div>
<divclass="column">
<pclass="notification is-warning">Auto</p>
</div>
<divclass="column">
<pclass="notification is-danger">Auto</p>
</div>
</div>
<divclass="columns">
<divclass="column is-two-thirds">
<pclass="notification is-info">
<codeclass="html">is-two-thirds</code>
</p>
</div>
<divclass="column">
<pclass="notification is-warning">Auto</p>
</div>
<divclass="column">
<pclass="notification is-danger">Auto</p>
</div>
</div>
<divclass="columns">
<divclass="column is-half">
<pclass="notification is-info">
<codeclass="html">is-half</code>
</p>
</div>
<divclass="column">
<pclass="notification is-warning">Auto</p>
</div>
<divclass="column">
<pclass="notification is-danger">Auto</p>
</div>
</div>
<divclass="columns">
<divclass="column is-one-third">
<pclass="notification is-info">
<codeclass="html">is-one-third</code>
</p>
</div>
<divclass="column">
<pclass="notification is-success">Auto</p>
</div>
<divclass="column">
<pclass="notification is-warning">Auto</p>
</div>
</div>
<divclass="columns">
<divclass="column is-one-quarter">
<pclass="notification is-info">
<codeclass="html">is-one-quarter</code>
</p>
</div>
<divclass="column">
<pclass="notification is-success">Auto</p>
</div>
</div>
{% highlight html %}
<divclass="columns">
<divclass="column is-three-quarters">
<pclass="notification is-info">
<codeclass="html">is-three-quarters</code>
</p>
</div>
<divclass="column">
<pclass="notification is-warning">Auto</p>
</div>
<divclass="column">
<pclass="notification is-danger">Auto</p>
</div>
</div>
<divclass="columns">
<divclass="column is-two-thirds">
<pclass="notification is-info">
<codeclass="html">is-two-thirds</code>
</p>
</div>
<divclass="column">
<pclass="notification is-warning">Auto</p>
</div>
<divclass="column">
<pclass="notification is-danger">Auto</p>
</div>
</div>
<divclass="columns">
<divclass="column is-half">
<pclass="notification is-info">
<codeclass="html">is-half</code>
</p>
</div>
<divclass="column">
<pclass="notification is-warning">Auto</p>
</div>
<divclass="column">
<pclass="notification is-danger">Auto</p>
</div>
</div>
<divclass="columns">
<divclass="column is-one-third">
<pclass="notification is-info">
<codeclass="html">is-one-third</code>
</p>
</div>
<divclass="column">
<pclass="notification is-success">Auto</p>
</div>
<divclass="column">
<pclass="notification is-warning">Auto</p>
</div>
</div>
<divclass="columns">
<divclass="column is-one-quarter">
<pclass="notification is-info">
<codeclass="html">is-one-quarter</code>
</p>
</div>
<divclass="column">
<pclass="notification is-success">Auto</p>
</div>
</div>
{% endhighlight %}
<h4class="title is-4">12 columns</h4>
<divclass="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>
<divclass="message is-danger">
<pclass="message-header">Naming</p>
<pclass="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>
<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>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>
<divclass="columns is-mobile">
<divclass="column">
<pclass="notification is-info">1</p>
</div>
<divclass="column">
<pclass="notification is-success">2</p>
</div>
<divclass="column">
<pclass="notification is-warning">3</p>
</div>
<divclass="column">
<pclass="notification is-danger">4</p>
</div>
</div>
{% highlight html %}
<divclass="columns is-mobile">
<divclass="column">1</div>
<divclass="column">2</div>
<divclass="column">3</div>
<divclass="column">4</div>
</div>
{% endhighlight %}
<divclass="message is-info">
<pclass="message-header">Resize</p>
<pclass="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>
<divclass="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>
<divclass="columns is-desktop">
<divclass="column">
<pclass="notification is-info">1</p>
</div>
<divclass="column">
<pclass="notification is-success">2</p>
</div>
<divclass="column">
<pclass="notification is-warning">3</p>
</div>
<divclass="column">
<pclass="notification is-danger">4</p>
</div>
</div>
{% highlight html %}
<divclass="columns is-desktop">
<divclass="column">1</div>
<divclass="column">2</div>
<divclass="column">3</div>
<divclass="column">4</div>
</div>
{% endhighlight %}
<h4class="title is-4">Different sizes per breakpoint</h4>
<divclass="content">
<p>You can define a <strong>column size</strong> for <em>each</em> viewport size: mobile, tablet, and desktop.</p>
<pclass="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>
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 <ahref="#multiline">multiline columns</a> is the <strong>order</strong> in the HTML code: all the <strongclass="has-text-info">blue</strong> columns appear <em>before</em> the <strongclass="has-text-danger">red</strong> ones. Resize to a narrower viewport to see the result.
<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>
<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>
<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>
<divclass="columns">
<divclass="column is-narrow">
<divclass="box"style="width: 200px;">
<pclass="title is-5">Narrow column</p>
<pclass="subtitle">This column is only 200px wide.</p>
</div>
</div>
<divclass="column">
<divclass="box">
<pclass="title is-5">Flexible column</p>
<pclass="subtitle">This column will take up the remaining space available.</p>
</div>
</div>
</div>
{% highlight html %}
<divclass="columns">
<divclass="column is-narrow">
<divclass="box"style="width: 200px;">
<pclass="title is-5">Narrow column</p>
<pclass="subtitle">This column is only 200px wide.</p>
</div>
</div>
<divclass="column">
<divclass="box">
<pclass="title is-5">Flexible column</p>
<pclass="subtitle">This column will take up the remaining space available.</p>
</div>
</div>
</div>
{% endhighlight %}
<divclass="content">
<p>As for the size modifiers, you can have narrow columns for different <strong>breakpoints</strong>:</p>