Skip to content

Layout

Container

Use .container for a centered viewport or .container-fluid for a full-width layout.

Pico includes six default breakpoints. These breakpoints can be customized with Sass.

DeviceBreakpointViewport
Extra small<576px100%
Small≥576px510px
Medium≥768px700px
Large≥1024px950px
Extra large≥1280px1200px
Extra extra large≥1536px1450px

.container and .container-fluid are not available in the class‑less version (see Semantic containers for an alternative).

Fixed width#

.container provides a centered container with a fixed width.

<body>
  <main class="container">
    ...
  </main>
</body>

Fluid width#

.container-fluid provides a full-width container.

<body>
  <main class="container-fluid">
    ...
  </main>
</body>

Semantic containers#

In the classless version, <header>, <main>, and <footer> inside <body> act as containers to define a centered or a fluid viewport.

See Class-less version.

Edit this page on GitHub