Fixing Spacing Between Images and Text in Outlook 2026
Fixing Spacing Between Images and Text in Outlook 2026 - Practical tips from the PasteClean team.

You’ve spent twenty minutes drafting a critical update for your stakeholders. You drag in a chart, carefully align it to the right of your second paragraph, and hit send. It looks perfect in your draft folder. But two minutes later, you check your "Sent" items—or worse, get a screenshot from a confused client—and the text is glued directly to the edge of the image. No padding. No breathing room. Just a wall of characters crashing into your data visualization.
This isn't user error; it’s an architectural quirks that has plagued Microsoft’s email ecosystem for decades. Even as we look at the landscape of Outlook 2026, the legacy of the Word rendering engine dictates how our emails behave. If you want your email formatting to survive the trip across the server, you have to stop designing for a web browser and start coding for a word processor from the mid-2000s.
The Core Problem: Word vs. Web Rendering
To fix outlook image spacing, you first have to respect the engine running the show. Since Outlook 2007, the desktop client has used Microsoft Word to render HTML. This was a decision made to ensure emails looked great when created in Word, but it created a massive rift between email design and standard web design.
When you paste an image into a web-based client like Gmail, the browser uses standard CSS box models. It understands margin, padding, and float.
When that same email hits Outlook Desktop (Classic), the Word engine translates that HTML into what is essentially Rich Text Format (RTF). During this translation, Word sanitizes "complex" CSS. Unfortunately, Outlook considers standard margins on <img> tags to be complex. It strips them out completely, collapsing the whitespace you thought you secured.
The "New Outlook" vs. Classic Outlook
We are currently in a fragmented era. Microsoft is pushing the "New Outlook" (which is essentially a web wrapper based on WebView2 technology), but the enterprise world is slow to migrate. This means your email list is likely split 50/50.
- New Outlook / Web: Renders like a browser. Margins usually work.
- Classic Outlook (Win32): Renders like Word. Margins fail.
If you optimize only for the modern version, you break the layout for your most important corporate recipients. To fix outlook layout issues reliably, we have to use the "lowest common denominator" approach.
Why Standard CSS Margins Fail
You might be tempted to edit the HTML source and add style="margin: 20px;" to your image tag. In a browser, this pushes text away from the image. In Outlook, this is often ignored specifically on inline images.
The Word engine treats images as inline characters by default unless they are wrapped in specific containers. Even if you apply a float (e.g., float: left), Outlook struggles to interpret the margin applied to that floating element. It prioritizes the text wrap over the spacing, resulting in that claustrophobic, text-touching-image look.
Pro Tip: Never rely on the "drag-to-resize" handles in the Outlook compose window to create space. While it looks like you are positioning the image, you are simply altering the display dimensions. The underlying HTML structure remains unchanged, and the spacing will collapse upon sending.
Solution 1: The "Baking It In" Method (Easiest for Daily Use)
If you are sending a standard business email—not an HTML marketing newsletter—messing with code is inefficient. The most reliable, unbreakable way to ensure spacing around an image in Outlook is to make the space part of the image itself.
This sounds primitive, but it is the only method that works 100% of the time across every version of Outlook, from 2007 to Outlook 2026.
- Open your image in an editor (Photoshop, Canva, or even Paint).
- Add a 20-pixel transparent (or white, if your email background is white) border around the image.
- Save and insert this version into your email.
Since the "space" is now pixels within the image file, Outlook cannot strip it away. It treats the whitespace as image data. This is brute-force email formatting, but it solves the headache instantly without touching a single line of code.
Solution 2: The VSPACE and HSPACE Attributes
If you are comfortable editing the source code or are building a template, you can use deprecated HTML attributes. Modern web standards dropped vspace (vertical space) and hspace (horizontal space) years ago in favor of CSS. However, because the Word engine is built on older standards, it respects these attributes perfectly.
Instead of this:
<img src="chart.jpg" style="margin: 10px;">
Use this:
<img src="chart.jpg" hspace="20" vspace="20">
The Downside
The hspace attribute adds space to both sides of the image. If you align an image to the left and want text on the right, hspace="20" will add 20px to the right (good) and 20px to the left (bad, as it pushes the image away from the email border).
Solution 3: The Ghost Table (The Developer's Choice)
If you need precise control—padding on the right but not the left—you must use tables. Tables are the skeleton key to Outlook 2026. The Word engine loves tables; it renders them predictably and respects their cell padding.
To wrap text around an image with proper spacing, do not float the image. Instead, create a two-column table.
The Structure:
- Column 1: Contains the image.
- Column 2: Contains the text.
- Cell Spacing: Applied to the table cells (
<td>).
Here is the logic:
- Create a table with
border="0"cellpadding="0"cellspacing="0". - In the first
<td>, insert your image. - Apply
padding-right: 20px;to that specific<td>. - In the second
<td>, insert your text.
Outlook respects padding on table cells much more consistently than margins on images.
The Impact of AI-Generated Text on Layouts
We can't discuss email formatting today without addressing where the text comes from. If you are pasting content from ChatGPT, Claude, or Jasper directly into Outlook or a marketing tool, you are introducing invisible layout bugs.
AI models generate text in Markdown, which is then converted to HTML by the browser. This often results in text wrapped in generic <span> tags or weirdly nested <div>s rather than clean <p> (paragraph) tags.
When you try to align an image next to AI-generated text:
- Outlook may treat the entire pasted block as a single HTML element.
- The image won't "wrap" because the text isn't broken into logical blocks.
- Line-heights often break, causing the text to look vertically misaligned with the image.
The Fix: You need to strip the "dirty" HTML before formatting. Run the text through a tool like PasteClean to convert the AI output into semantic, clean HTML. Once the text is clean, Outlook's rendering engine can handle the wrapping logic much better.
A Concrete Before and After
Let’s look at the code difference between a broken layout and a fixed one.
Before (Broken in Outlook): This relies on CSS floats and margins, which Outlook often ignores or misinterprets.
<img src="logo.png" style="float: left; margin-right: 20px; margin-bottom: 10px;">
<p>Here is the text that should wrap nicely around the logo but instead crashes into it because Outlook stripped the margin styles.</p>
After (Fixed with Tables): This uses the table structure to physically separate the elements.
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150" valign="top" style="padding-right: 20px;">
<img src="logo.png" width="150" style="display: block;">
</td>
<td valign="top">
<p style="margin-top: 0;">Here is the text. It is physically separated from the image by the table cell's padding. It cannot crash into the image.</p>
</td>
</tr>
</table>
Counterintuitive Advice: Don't Use "Align"
In standard HTML, using <img align="left"> is the old-school way to float images. You might think using this legacy attribute would help Outlook.
While align="left" does work to float the image, it creates a "sticky" effect where the text flows immediately into the available space. Without hspace, you are back to square one. Furthermore, mixing align="left" with modern CSS margin creates rendering conflicts in the "New Outlook."
It is cleaner to separate the layout (table) from the content (image/text) rather than forcing the image to push the text away.
The Mobile Variable
We are focusing on Outlook 2026 desktop, but what happens on mobile?
When you use the "Table Method" described above, you create a rigid structure. On a mobile screen, a two-column table might squash your text into a tiny vertical strip.
To combat this, you have to ensure your table width is set to 100%, and your image width is static. However, for true mobile responsiveness where the image stacks on top of the text, you need media queries (@media).
The bad news: Outlook mobile apps have spotty support for media queries. The practical fix: Keep your images small (under 150px wide) if you are wrapping text. If the image needs to be large, do not wrap text. Place the image on its own line, full width. It looks better on desktop and won't break on mobile.
Checklist for Bulletproof Image Spacing
Before you hit send on that high-stakes email, run through this quick QA list:
- [ ] Did you Clean the Text? Ensure no hidden
<span>tags from AI generation are interfering with block-level rendering. - [ ] Is the Space Baked In? If it's a one-off email, did you add whitespace to the image file itself?
- [ ] Did you use HSPACE? If editing HTML, did you add
hspace="15"as a fallback? - [ ] Are you using a Table? For newsletters, is the layout controlled by
<td>padding rather than image margins? - [ ] Test Send: Did you send a live test to a genuine Outlook desktop client (not just a preview tool)?
Insight: Outlook renders heights differently than widths. If you notice your text aligning strangely with the bottom of an image, it’s usually because Outlook adds extra line-height to the image container. Adding style="display: block" to the image tag usually fixes this vertical gap.
Summary
Fixing outlook image spacing isn't about learning the newest web standards; it's about remembering the oldest ones. Until Microsoft completely decouples the Word rendering engine from the email client—a shift that is happening slowly with the "New Outlook" but isn't complete—we are stuck managing two different worlds.
For your daily workflow, stop fighting the code. Bake the
Clean your AI text instantly
Paste text from ChatGPT, Claude, or any AI tool and get clean, email-ready formatting in one click.
Try PasteClean Free