--- title: Nesting columns layout: docs theme: library doc-library: true doc-tab: columns doc-subtab: nesting breadcrumb: - home - documentation - columns - columns-nesting ---

You can nest columns to have more flexibility in your design. You only need to follow this structure:

The difference with multiline columns is the order in the HTML code: all the blue columns appear before the red ones. Resize to a narrower viewport to see the result.

{% capture columns_nested_example %}

First column

First nested column

Second nested column

Second column

50%

Auto

Auto

{% endcapture %} {{ columns_nested_example }}

Multiline columns will also have a gap between each line.

{% highlight html -%} {{- columns_nested_example -}} {%- endhighlight %}