Pico provides class="container" for a centered, max-width viewport and class="container-fluid" for edge-to-edge layouts. Breakpoints (sm through xxl) map to fixed viewport widths documented in Pico—customize them in Sass when your design system needs different gutters.
Semantic vs class containers
In the default build, put container on main (or nested sections) to constrain prose. In classless mode, main itself is the container—do not mix both patterns on the same page.
Grid alongside containers
class="grid" children split columns inside a container; combine with forms and article cards for docs homepages and dashboards that still feel readable on large monitors.
Self-check
- When do you pick
container-fluidovercontainer? - Which file variant removes the
containerclass entirely?