Container

Ready Added in 2.0.0

This component allows you to align and center your page content.

Usage

Add the .gls-container class to a block element to give it a max-width and wrap the main content of your website. The element will be centered and have padding on the sides, that adapts automatically for large screens.

Note The padding of nested containers will be removed to avoid unnecessary spacing.

<div class="gls-container"></div>

Size modifiers

Add one of the following classes to the container to apply a different max-width.

Class Description
.gls-container-xsmall Add this class for a xsmall container.
.gls-container-small Add this class for a small container.
.gls-container-large Add this class for a large container.
.gls-container-xlarge Add this class for a xlarge container.
.gls-container-expand Add this class, if you do not want to limit the container width but still want the dynamic horizontal padding.
<div class="gls-container gls-container-xsmall"></div>

<div class="gls-container gls-container-small"></div>

<div class="gls-container gls-container-large"></div>

<div class="gls-container gls-container-xlarge"></div>

<div class="gls-container gls-container-expand"></div>

Container in sections

You can apply this component to modify the width of content inside sections from the Section component.

<div class="gls-section gls-section-primary">
    <div class="gls-container gls-container-small"></div>
</div>