🧱 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.

Content
Popout
Feature
Content Start to Feature End
Feature Start to Content End
Full
Content Start to Full End
Full Start to Content End