Image Alignments
Five built-in alignment classes control image positioning within rich text content.
.image-left — Float left with text wrapping
The image floats to the left and surrounding text wraps around it. This is the most common layout for editorial content where an image illustrates a point while the narrative continues alongside it. The float is cleared automatically via the ::after pseudo-element to prevent layout collisions with subsequent content. On screens narrower than 768px, the float is removed and the image becomes a centered block element for better readability on mobile devices.
.image-right — Float right with text wrapping
The image floats to the right. This is useful for pull-quotes, secondary illustrations, or sidebar content that accompanies the main text flow. Like .image-left, the float clears automatically and becomes a centered block on narrow viewports. The margin is applied on the left side to create space between the image and the text.
.image-center — Centered block element
Content before the centered image.
Content after the centered image. The image is displayed as a block element with automatic left and right margins. Text does not wrap around it — it creates a visual break in the content flow, ideal for hero images or key illustrations.
.image-inline — Inline with text flow
Inline images sit within the text flow, like this
icon or this larger
badge. They are vertically aligned to the middle of the text baseline. Useful for icons, emoji-like images, or small decorative elements within a paragraph.
.image-block — Full-width block element
Content before the block image.
Content after. The image stretches to 100% of the container width, creating a strong visual break. Ideal for banner images, section dividers, or full-bleed photography.
Captions & Figures
Images with captions are wrapped in <figure> with <figcaption>.
Caption alignment follows the figure alignment class.
The figure is centered via .image-center and constrained to the image width via max-width. The caption text is centered within the figure.
When a figure uses .image-left, the caption aligns left and text wraps around both the image and its caption. The max-width on the figure ensures the caption never extends beyond the image boundary, keeping the layout clean even with longer caption text. This is the fix introduced in issue #667.
A right-aligned figure with caption demonstrates the same width constraint behavior. The caption text is left-aligned (matching left/right float convention) and contained within the image width. The wrapping text fills the space to the left of the floated figure.
With .image-block, the figure uses width: 100% but the inline max-width caps it at the image width. This prevents the caption from spanning the full container while keeping the block display behavior.
Caption Width Constraint
Fix for #667:
figcaptions are now constrained to the image width via max-width.
Long words break via overflow-wrap: break-word.
The figcaption expands the figure width beyond the image, breaking the layout.
With max-width: 75px, the caption wraps within the image width.
overflow-wrap: break-word
Links & Click-to-Enlarge
Images can be wrapped in links for navigation or popup/zoom functionality.
The extension resolves t3:// URLs and validates protocols.
Template Combinations
The extension selects one of six Fluid templates based on the image configuration. Priority: Popup > Link > Caption > Standalone.
Plain <img> tag only
<figure><img><figcaption>
Responsive Behavior
On screens narrower than 768px, floated images become centered blocks.
The max-width constraint ensures figures never exceed their image width
while allowing them to shrink on small screens.
On wide screens, this image floats left with text wrapping around it. Resize your browser window below 768px to see it switch to a centered block layout. The max-width property is responsive by design — it allows the figure to shrink on narrow screens but never exceed the image width. This works with all alignment modes.
The combination of max-width on the figure and the responsive media query means images and their captions always look correct regardless of viewport size.
loading="lazy" attribute
Images support loading="lazy|eager|auto" for native browser lazy loading
and decoding="async" for non-blocking decode.