A responsive HTML email newsletter, hand-built to render consistently from Outlook on Windows through to Gmail on a phone.
| File | What it is |
|---|---|
index.html |
The full document, with images referenced relatively. This is what the live preview serves. |
beehiiv-snippet.html |
The same email as a body fragment with absolute image URLs, ready to paste into the beehiiv editor. |
img/ |
The artwork, served over GitHub Pages so the preview works without a backend. |
preview-desktop.png, preview-mobile.png |
Rendered previews at both widths. |
The two HTML files are deliberately different builds of one design. The preview needs relative paths so it works from any checkout; the version that actually ships needs absolute URLs, because an email client has no site to resolve a relative path against.
Email rendering engines are roughly two decades behind browsers, so almost nothing from modern CSS is safe. This template is built the way email has to be built:
- 45 nested tables for layout. Flexbox and grid are not reliable in email; nested tables are.
- 143 inline styles. Several clients strip
<style>blocks entirely, so anything that must survive is declared on the element itself. - 14 MSO conditional blocks. Outlook on Windows renders through Microsoft Word's engine, which needs its own markup for spacing, button shapes and image widths.
- One media query, for the mobile layout — applied as a progressive enhancement, so clients that ignore it still get a readable single-column email rather than a broken one.
Spacing is done with table cell padding and explicit spacer rows rather than margins, since margin support is inconsistent and collapses unpredictably in Word's engine.
To preview: open index.html in a browser, or use the hosted preview.
To send from beehiiv: create a post, switch the editor to HTML, and paste the contents of
beehiiv-snippet.html. Images load from their hosted URLs, so they resolve in the recipient's
inbox rather than only on a local machine.
Before any real send, test the rendering — Outlook on Windows and Gmail on mobile are the two that most often disagree with everything else.
