Spacing belongs to the page, not the module. How the zero-margin principle keeps layouts predictable across every section.
Open any long-lived website and inspect the spacing: odds are it is a pile of margin overrides fighting each other. That fight starts with one design decision — so we made the opposite one.
Spacing is a layout decision
Every Peerless module renders with no outer margins or padding of its own. That sounds like a small implementation detail; it is actually the reason layouts stay predictable as your site grows.
When modules carry their own spacing, two modules stacked together produce arbitrary gaps, and editors fight the theme with negative margins. When spacing belongs to sections and columns, the page editor controls rhythm in one place.
What this means for editors
Set vertical spacing on the section, not the module. Duplicate a section and the rhythm stays. Move a module between columns and it never drags stray whitespace along with it.
The one rule to remember
If you are reaching for spacing controls on a module, stop and set it on the section instead. Your future self, duplicating that section onto a new page, will thank you.
Curious how the theme keeps its CSS this disciplined? Read about the ITCSS layers that structure every stylesheet in Peerless.
About the Author
Founder, Developer, Marketer of Sports Page.
Comments
July 8, 2026
From Drupal to HubSpot: Rebuilding paloaltou.edu with Peerless Components
July 8, 2026
Powering a Sports Portfolio: BuildingSportsPage on Peerless
How we built sportspage.io as a child theme of Peerless: ten custom modules, everything else inherited, and one repo…
July 7, 2026
Turn One Blog Post Into a Week of Social Content
You do not need a new idea every day. One solid blog post breaks down into five or six days of social posts if you know…
July 7, 2026
Why Your HubSpot Blog Needs Tag-Based Categories, Not Just One Feed
One long feed of every post you have ever written is not a content strategy. Tags, used as categories, turn a blog into…
July 7, 2026
Blog Feed v2: Tag-Filtered Feeds and Faster Cards
The blog-feed module was rebuilt from the ground up: recent posts, tag-filtered feeds, tag tabs, and a card layout you…
July 7, 2026
A New Pricing Table Module, Built for Side-by-Side Comparison
The rebuilt pricing-table module lays out multiple tiers, feature sections, and checkmarks side by side, driven…
