Blog posts often need small layout adjustments: an image beside a paragraph, a caption underneath a photo, or a group of related links with consistent spacing. These kinds of changes do not need a custom module, a new stylesheet, or a developer.
Peerless includes four utility classes specifically for these situations: .left, .right, .caption, and .flex-col. They are available directly in the rich-text editor, giving content editors a simple way to control how individual pieces of content are presented.
Let text wrap around an image with .left or .right
By default, an image in a blog post sits within the normal flow of the content. If you want the text to sit alongside the image instead, use class="left" or class="right".
Open the rich-text editor's source-code view and add class="right" directly to the image:
Once the post is published, the surrounding copy automatically flows alongside the image rather than stacking underneath it.
.right moves the image toward the right side of the content, while .left moves it toward the left. Both utilities include a 15px gutter, keeping the surrounding text comfortably separated from the image.
Keep an image and caption together with .caption
Images often need a little context — a photo credit, a description, or a short note. The .caption utility gives that text a smaller, italicized treatment so it reads naturally as supporting information rather than part of the main article.
For a floated image with a caption, place the image and caption together in a flex-col wrapper and use left or right on that wrapper:
A short description or photo credit goes here.
The flex-col class keeps the image and caption together as a vertical unit, while left controls where that unit sits within the article. The caption class then gives the supporting text its caption styling.
The rest of the article can continue normally around the floated image and its caption.
Build simple link groups with .flex-col
Not every piece of blog content needs to be a traditional list. Sometimes you simply want to present a few resources, downloads, or related articles as a clean vertical group.
Wrap the links in class="flex-col" to stack them into a column with consistent spacing:
This is useful for small groups of links where the goal is presentation rather than a formal ordered or unordered list.
Built into the theme — no deploy required
These utilities are already part of the Peerless theme's ITCSS utilities layer. That means you do not need to create a new module, edit a stylesheet, or deploy a change just to make a small adjustment to a blog post.
Simply add the appropriate class in the rich-text editor's source-code view, publish the post, and the styling is ready to use.
The result: common content-layout changes stay in the hands of the content editor, while the theme handles the underlying styling consistently across the site.
About the Author
Founder, Developer, Marketer of Sports Page.
Comments
Related Posts
July 20, 2026
Four CSS Classes That Make Peerless Blog Posts Easier to Read
Four utility classes already built into Peerless let you float images, caption them, and stack link lists, all from the…
July 12, 2026
What Makes Peerless Different From Other HubSpot Themes
The specific architecture decisions -- no build step, zero-margin modules, ITCSS layering -- that separate Peerless…
July 12, 2026
The Story Behind FCP Solutions and Peerless
Why FCP Solutions builds Peerless as its own base theme, and how the same theme now powers more than one production…
July 12, 2026
How to Pass Core Web Vitals on HubSpot CMS
A practical checklist for hitting good Core Web Vitals scores on HubSpot CMS -- images, fonts, third-party scripts, and…
July 12, 2026
The Anatomy of a High-Converting CTA
What separates a call-to-action that converts from one that gets scrolled past -- copy, contrast, and placement, broken…
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…
