Back to Toolkit
Google Search Verified Fix

Outlook Email Broken Layout Fix: Resolve CSS Flexbox Collapse

A programmatic integration guide for resolving email rendering crashes inside Outlook Office 365 (Web) using MJML Framework's layout editor environment.

Root Bug Analysis

Outlook O365 Web App strips modern flex declarations in web viewports, causing adjacent columns to stack vertically.

Active rendering engine: Office Rendering Service

MJML Framework Specific Guide

MJML compiles layout templates to responsive tables, but custom flex containers require enclosing raw structures inside <mj-raw> tags.

Integration Step:

Wrap the entire RenderOps corrected table block inside an '<mj-raw>' tag block. This tells the MJML compiler to bypass parsing on this segment, exporting the exact conditional statements into the final HTML output.

ESP Unsubscribe Alignment

When compiling custom HTML templates for MJML Framework, you must ensure your layout retains deliverability compliance loops. MJML Framework requires you to insert their specific unsubscribe merge tag, otherwise your campaign delivery will be flagged by automated spam audits.

MJML Framework Unsubscribe Tag:{{unsubscribe_link}}

Documented Client Behavior

Expected layout behavior based on target rendering engine specifications:

Documented behavior: Web views of O365 Web App stack flex containers. Fixed by mapping structures to tables inside mj-raw tags.

Interactive MJML Framework Custom Sandbox

Target Environment: Outlook Office 365 (Web)

Auto-compile fixes inside RenderOps Workspace

Load layout code directly into our Retrofit Compiler to compile responsive table frameworks that display cleanly in Outlook Office 365 (Web).

Launch Retrofit Compiler

Fix CSS Flexbox Collapse on Other clients for MJML Framework