Get 20% off with code BULMA
Valid until the end of November 2024
Download

Sponsor

Route Planner and Route Optimizer

Section


A simple container to divide your page into sections, like the one you’re currently reading

The section components are simple layout elements with responsive padding. They are best used as direct children of body.

Example

Section

A simple container to divide your page into sections, like the one you're currently reading.

HTML

<section class="section">
  <h1 class="title">Section</h1>
  <h2 class="subtitle">
    A simple container to divide your page into <strong>sections</strong>, like
    the one you're currently reading.
  </h2>
</section>

Sizes #

You can use the modifiers is-medium and is-large to change the spacing.

Example

Medium section

A simple container to divide your page into sections, like the one you're currently reading.

HTML

<section class="section is-medium">
  <h1 class="title">Medium section</h1>
  <h2 class="subtitle">
    A simple container to divide your page into <strong>sections</strong>, like
    the one you're currently reading.
  </h2>
</section>

Example

Large section

A simple container to divide your page into sections, like the one you're currently reading.

HTML

<section class="section is-large">
  <h1 class="title">Large section</h1>
  <h2 class="subtitle">
    A simple container to divide your page into <strong>sections</strong>, like
    the one you're currently reading.
  </h2>
</section>

Sass and CSS variables #

Sass Variable
CSS Variable
Value
$section-padding
var(--bulma-section-padding)
3rem 1.5rem
$section-padding-desktop
var(--bulma-section-padding-desktop)
3rem 3rem
$section-padding-medium
var(--bulma-section-padding-medium)
9rem 4.5rem
$section-padding-large
var(--bulma-section-padding-large)
18rem 6rem

How to support Bulma

#native_company# #native_desc#
#native_cta#
Get started for Free
Get started for Free