bulma/docs/documentation/columns/basics.html

54 lines
1.2 KiB
HTML
Raw Normal View History

2017-08-14 17:25:14 +00:00
---
title: Columns powered by Flexbox
2024-03-21 16:11:54 +00:00
layout: docs
theme: library
doc-library: true
2017-08-14 17:25:14 +00:00
doc-tab: columns
doc-subtab: basics
2018-04-09 11:45:52 +00:00
breadcrumb:
2024-03-21 16:11:54 +00:00
- home
- documentation
- columns
- columns-basics
2017-08-14 17:25:14 +00:00
---
{% capture columns %}
<div class="columns">
2024-03-21 16:11:54 +00:00
<div class="column">First column</div>
<div class="column">Second column</div>
<div class="column">Third column</div>
<div class="column">Fourth column</div>
2017-08-14 17:25:14 +00:00
</div>
{% endcapture %}
2018-04-09 11:45:52 +00:00
<div class="content">
<p>Building a <strong>columns layout</strong> with Bulma is very simple:</p>
<ol>
<li>Add a <code>columns</code> container</li>
<li>Add as many <code>column</code> elements as you want</li>
</ol>
2024-03-21 16:11:54 +00:00
<p>
Each column will have an <strong>equal width</strong>, no matter the number
of columns.
</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">
<div class="column">
<p class="bd-notification is-primary">First column</p>
</div>
<div class="column">
<p class="bd-notification is-primary">Second column</p>
2017-08-14 17:25:14 +00:00
</div>
2018-04-09 11:45:52 +00:00
<div class="column">
<p class="bd-notification is-primary">Third column</p>
</div>
<div class="column">
<p class="bd-notification is-primary">Fourth column</p>
</div>
</div>
<div class="bd-highlight-full">
2024-03-21 16:11:54 +00:00
{% highlight html -%} {{- columns -}} {%- endhighlight %}
2018-04-09 11:45:52 +00:00
</div>