π§± Grid Layout β Flexible Page Structure for Craft CMS
This layout system provides a clean and flexible structure for placing
Matrix Builder components on a page. It uses named CSS grid areas β
content, popout, feature, and full β
to define clear layout zones. Each block can be positioned simply by adding the right class,
with no custom layout code required.
- β Consistent layout behavior across the entire site
- π§ Easy control over width and visual hierarchy
- π§© Clean Twig templates with minimal markup
- π± Fully responsive out of the box
This approach lets editors and developers focus on content, not layout headaches. Whether itβs a simple text block or a wide hero image, everything snaps into place.
π‘ Example zone classes
.blocks__contentβ standard content width.blocks__popoutβ slightly wider, draws attention.blocks__featureβ emphasized, wider section.blocks__fullβ edge-to-edge full width
π§ Connecting zones
In addition to single zones, you can also span multiple layout areas to create more dynamic compositions:
.blocks__content-to-featureβ from content-start to feature-end.blocks__feature-to-contentβ from feature-start to content-end.blocks__content-to-fullβ from content-start to full-end.blocks__full-to-contentβ from full-start to content-end
These connecting zones make it easy to combine different content widths seamlessly β perfect for hero sections, feature teasers, or split layouts without extra CSS.
π The result: A layout system thatβs lean, modular, and easy to extend β ideal for any content-driven Craft CMS project.