Skip to content

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.

Also known as: order confirmation, purchase confirmation email, order receipt email, ecommerce order email

Order Confirmation Email live demo

Open in new tab

Pure CSS code (HTML, CSS)

An email-safe order confirmation template for an online store, written as plain HTML tables with inline styles and no framework. A serif wordmark header leads into a thank-you message, an order number and date panel, product rows with photos, a subtotal, shipping, tax and total table, shipping and billing addresses, and a rounded "Track your order" button.

How it works

A hidden .oc-preheader sets the inbox preview text. The outer .oc-wrap table paints the warm sand background and the .oc-container table holds the 600px message; an MSO conditional comment adds a fixed-width 600px table for Outlook desktop, which ignores max-width. All colors, fonts and spacing are inline style attributes, with bgcolor attributes as a fallback.

Each product is one row of the .oc-items table: an 80x80 image cell, a name, variant and quantity cell, and a right-aligned price cell. Images use width/height attributes, display:block and descriptive alt text. The .oc-totals table is a fixed 280px wide and right-aligned, with a dark rule above the total.

The address block in .oc-addresses uses the fluid hybrid technique: two .oc-col inline-block divs with max-width:272px sit side by side on wide screens and wrap on narrow ones without any media query, while MSO comments place them in two table cells for Outlook. The button is a bulletproof padded table cell (.oc-btn-cell) with an inline link (.oc-btn) and mso-padding-alt.

style.css adds progressive extras only: a hover color for .oc-btn-cell, a focus ring, and a mobile media query that trims .oc-pad padding, lets .oc-col use the full width and stretches .oc-totals to 100%.

Customization

  • Accent color: replace #b5562f in the header top border, the total amount, the address headings and .oc-btn-cell to rebrand.
  • Products: duplicate or delete a row of .oc-items; keep the 80px image cell and the border-bottom on each cell. The photos come from Unsplash; replace them with your own product images at 160x160.
  • Order meta: edit the order number and "Today, 9:41 AM" in the panel, or replace them with merge tags from your e-commerce platform.
  • Totals: add a "Discount" row to .oc-totals by copying the "Tax" row; change the table width for longer labels.
  • Address columns: change max-width:272px on .oc-col and the MSO cell widths together if you change the padding of .oc-addresses.
  • Button shape: lower the border-radius:30px on .oc-btn-cell and .oc-btn for a squarer button.

Use cases

  • Online stores: confirm an order with number, date and product rows with photos
  • Retail checkouts: a totals table shows subtotal, shipping, tax and total
  • Shipping updates: shipping and billing addresses are listed for the customer to verify
  • Post-purchase flows: a rounded Track your order button leads to delivery status

Accessibility

Layout tables use role="presentation", the wrapper declares lang="en", and the content has a real <h1> and <h2> outline. Product images have meaningful alt text, prices are plain text next to item names, and link texts describe their target. Body text colors stay above WCAG AA contrast on white and sand backgrounds.

Usage notes

The patterns target Outlook 2016-2021 and Microsoft 365 on Windows, Outlook.com, Gmail (web and apps), Apple Mail and iOS Mail. Place the snippet in a full email document, copy style.css into a <style> block in the <head> and replace the sample data.

Order Confirmation Email at a glance

Framework
Pure CSS
Code
HTML, CSS
JavaScript
Not needed, CSS only
Dependencies
None
Layout
Responsive, works on mobile
Category
Email Templates
License
Free for personal and commercial use

Questions about this template

Can I use the Order Confirmation Email code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

There is nothing to install. Paste the HTML where the component should appear and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. It is built with HTML and CSS only, so there is no JavaScript to load.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

Order Confirmation Email – Pure CSS email templates component screenshot
Order Confirmation Email · Pure CSS Email Templates

More Email Templates

Feedback Survey Request Email – Pure CSS email templates preview

Feedback Survey Request Email

Email-safe feedback request with a one-tap 1 to 5 rating row of links, an open survey button, a thank-you discount note and a compliant footer.

Promotional Sale Email with Discount Code – Pure CSS email templates preview

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.

Subscription Renewal Reminder Email – Pure CSS email templates preview

Subscription Renewal Reminder Email

Email-safe renewal reminder with a photo header, plan summary and renewal amount, benefits list, bulletproof manage button and skip, pause and cancel links.

Event Invitation Email with RSVP – Pure CSS email templates preview

Event Invitation Email with RSVP

Dark email-safe event invitation with stage photo, date/time/location table, agenda highlights, Yes/No RSVP buttons and add-to-calendar links.

Payment Failed Email – Pure CSS email templates preview

Payment Failed Email

Email-safe card declined template with an alert banner, subscription and amount summary, decline reasons, update payment button and relative retry wording.

Re-engagement We Miss You Email – Pure CSS email templates preview

Re-engagement We Miss You Email

Email-safe win-back template with a friendly headline, what's new list with thumbnails, comeback offer card, return button and one-click unsubscribe.