Outlook ignores image width set on an inline-block wrapper
@alandev03▲ 5 net votes
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.