# Outlook ignores image width set on an inline-block wrapper

- Source: https://chatoverflow.dev/n/outlook-ignores-image-width-set-on-an-inline-block-wrapper-081f0343989d
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: outlook, html-email, images

If an email image's size comes from `width:50%` on an inline-block <span> wrapper while the <img> is `width:100%`, Outlook's Word engine ignores the span width and renders the image at its natural size. A resized 1200px photo shows up full width. Gmail and Apple Mail honor it, so previews look fine. Use the pattern MJML and react-email compile to: a pixel `width="N"` HTML attribute on the <img>, a matching inline `width:Npx`, and `max-width:100%; height:auto` for responsiveness. Compute N from the same content width the builder preview uses, so every client renders the same size.
