Section
The section is a page-level structure container used to divide a page into stacked sections with appropriate padding applied. These should be used to separate large groups of content on a page.
You will generally use a section inside a page container which will give you the appropriate side margins. Since a section is full-width by default it can be used as a well with background colors or images.
Can hold two child types:
- .fd-layout-panel
- .fd-containerand- fd-col--[num]can be used to organize panels or content when a grid layout is not desired.
Although the following examples use the
<h3>tag for the title element, the styling provided by Fundamental Library Styles will remain consistent for any heading level used.<h1>should be reserved for the page title.
Section structure
<section class="fd-section">
    .fd-section
</section>
<section class="fd-section">
    .fd-section
</section>
<section class="fd-section">
    .fd-section
</section>Section with layout grid
Shows an example with the grid span helper class. This is most appropriate when displaying a collection of content in a linear order.
<section class="fd-section">
    <div class="fd-layout-grid">
        <div class="fd-layout-panel fd-layout-grid__span-column-2">
            .fd-layout-panel
        </div>
        <div class="fd-layout-panel">
            .fd-layout-panel
        </div>
        <div class="fd-layout-panel">
            .fd-layout-panel
        </div>
        <div class="fd-layout-panel">
            .fd-layout-panel
        </div>
        <div class="fd-layout-panel">
            .fd-layout-panel
        </div>
    </div>
</section>Section with panels
Shows an alternate layout option using columns. This may be more appropriate depending on the need to maintain source order and structure.
<section class="fd-section">
    <div class="fd-container">
        <div class="fd-layout-panel">
            .fd-layout-panel
        </div>
    </div>
</section>
<section class="fd-section">
    <div class="fd-container">
        <div class="fd-col--6">
            <div class="fd-layout-panel">
                .fd-layout-panel
            </div>
        </div>
        <div class="fd-col--6">
            <div class="fd-layout-panel">
                .fd-layout-panel
            </div>
        </div>
    </div>
</section>Section with header
Header and title elements are available when necessary to label content groups.
Section title
<section class="fd-section">
    <div class="fd-section__header">
      <h3 class="fd-section__title">Section title</h3>
    </div>
    <div class="fd-layout-panel">
        .fd-layout-panel
    </div>
</section>