Skip to content

Promotional Sale Email with Discount Code

Email-safe sale template with a big 40% off banner, dashed discount code box, four-product price grid, bulletproof shop button and terms line.

Live preview

Open in new tab

Code

An email-safe promotional sale template in pure HTML with inline styles: a giant yellow "40% OFF" banner, a dashed discount code box, a four-product grid with old and new prices, a bulletproof "Shop the sale" button and a terms line. Use it for flash sales, weekend promotions or seasonal discount campaigns.

How it works

The markup starts with the hidden .pse-preheader text that inbox lists show as the preview line, followed by the full-width .pse-wrapper table that paints the grey background. Inside it, .pse-container is limited to 600 px with max-width, and an MSO conditional comment wraps it in a fixed 600 px table for Outlook on Windows, which ignores max-width.

Every section is a table row of role="presentation" tables with all colors, fonts and spacing as inline style attributes, so Gmail keeps the design even when it strips embedded styles. The banner uses 'Arial Black' with an Arial fallback, the code box is a single cell with a 2px dashed border, and the product grid is two rows of two .pse-col cells, each with an image that has width, height, alt and display:block. The button is a VML v:roundrect for Outlook and a padded link inside .pse-btn for every other client.

style.css is optional: it adds a hover color on .pse-btn and a phone layout below 480 px.

Customization

  • Change #ffd60a (yellow) and #111111 (black) in the inline styles to recolor the banner, code box, logo bar and button; replace them in the VML fillcolor too.
  • Edit the text of .pse-hero and the VOLT40 code in .pse-code to run a different offer; also update the preheader and the terms line.
  • Swap the four product images, names and prices inside the .pse-col cells; keep images square at 258 x 258 so the rows stay even.
  • Reduce .pse-hero in the @media block of style.css if your headline is longer than "40% OFF".
  • Remove the .pse-col rule from style.css to keep the grid two columns wide on phones instead of stacking it.
  • Replace the logo text "VOLT&VALE" with an <img> logo (absolute URL, width, height, alt).

Accessibility

Layout tables carry role="presentation" so screen readers skip table semantics, and the content keeps a real h1 and h2. Every product image has a descriptive alt, so the email still makes sense with images blocked. Text colors meet WCAG contrast on their backgrounds (black on yellow, yellow on black, dark grey on white), prices are written as text, and the struck-through original price is followed by the sale price so it reads in order.

Usage notes

The patterns target Outlook 2016+ on Windows (MSO conditionals and VML), Outlook.com, Gmail web and apps, Apple Mail and iOS Mail. Wrap index.html in your own <!doctype html> document with <meta charset> and a viewport tag before sending, and inline style.css into a <style> block in the head. The product photos come from Unsplash; replace them with your own hosted images.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

Promotional Sale Email with Discount Code – Pure CSS email templates component screenshot
Promotional Sale Email with Discount Code · Pure CSS Email Templates

More Email Templates

Shipping Confirmation Email with Tracking – Pure CSS email templates preview

Shipping Confirmation Email with Tracking

Email-safe shipping notification with estimated delivery, a table-cell progress bar, carrier and tracking number, shipped items and a track package button.

Product Launch Announcement Email – Pure CSS email templates preview

Product Launch Announcement Email

Email-safe product launch template with a bold dark hero, product photo, three feature blocks with image icons, pricing note and a bulletproof Try it now button.

Order Confirmation Email – Pure CSS email templates preview

Order Confirmation Email

Email-safe order confirmation template with order number, product rows with photos, totals table, shipping and billing addresses and a track order button.

New Sign-In Security Alert Email – Pure CSS email templates preview

New Sign-In Security Alert Email

Email-safe security alert template for a new sign-in: device, browser, location, IP and time rows plus "This was me" and "Secure my account" buttons.

Newsletter Email with Featured Articles – Pure CSS email templates preview

Newsletter Email with Featured Articles

Email-safe editorial newsletter with masthead, featured story, two-column article grid that stacks on mobile, quick links, sponsor slot and footer.

Welcome Email – Pure CSS email templates preview

Welcome Email

Email-safe welcome email template with logo header, hero photo, three getting-started steps, a bulletproof button, help line and footer.