Dev48
Language
  • About
  • Services
  • Industries
  • Technologies
  • Articles
  • Contacts
Book a call
    Home/Articles/Bulletproof email buttons html css vml
Dev48
info@dev48.org+375 29 320-40-96WhatsApp@isky_by

© 2026 · All rights reserved.

Bulletproof Email Buttons: HTML, CSS, VML

Source: ActiveCampaign•December 2, 2026 at 08:58 PM

Bulletproof Email Buttons: HTML, CSS, VML

Learn how to code bulletproof email buttons in HTML, CSS, and VML, with copy-ready code for four styles, plus Outlook fixes and accessibility checks.

  • Blog
  • Email Buttons

How to Make Bulletproof Email Buttons: HTML, CSS, and VML

December 2, 2026

A bulletproof email button is a call-to-action button built from HTML and CSS instead of an image, so it shows up and stays clickable even when an email client blocks images. If your button is a picture, a blocked image leaves your reader with nothing to click.

This guide shows you how to code one. You get four copy-ready button styles (padded, border-based, combined, and VML for Outlook), the trade-offs of each, and the accessibility and testing checks that keep buttons working in every inbox. It is one piece of building email campaigns that convert.

In this guide:

  • What makes an email button bulletproof
  • Four ways to code one, with working HTML
  • How to choose a style, size it, and keep it accessible
  • What image-blocked emails look like in real campaigns
  • How to build email buttons in ActiveCampaign

What is a bulletproof email button?

A bulletproof email button is a button made of live HTML text, a background color, and CSS, with no image involved. The email client draws it, so it renders whether images load or not.

The name comes from the problem it solves. A button saved as a graphic disappears when images are blocked, and the reader never sees the one action you asked for. A bulletproof button keeps its label, color, and link.

Every bulletproof button has three parts:

  • Live text. The label is real text that a screen reader can announce.
  • A coded background color. The color comes from CSS, so no picture is involved.
  • A real link. The whole button points to one URL that you can track.

The click is the last step of a chain that starts with subject lines, preheaders, and the type of email you send. A button that fails to display breaks that chain.

Why email images get blocked

Email clients decide whether to load images, and readers have good reasons to turn them off.

Three reasons images stay off:

  • Connection speed. On weak or patchy data, images load late or fail.
  • Accessibility. A screen reader (software that reads a page aloud) cannot read text inside a GIF or JPEG, so image-only emails are inaccessible to
  • Privacy. Many articles advise readers to switch off automatic image downloads so senders cannot track their opens.

You cannot know which of your subscribers see your images. A button built from code removes the guesswork.

How a bulletproof button is built

Most bulletproof buttons follow the same recipe: a one-cell HTML table, a background color on the cell, and a text link inside it. Tables hold up across email clients, including those that ignore newer layout CSS.

Two details decide whether the button holds up:

  • Inline styles. Put CSS on the elements themselves, because many clients strip or rewrite style sheets in the head of an email.
  • An Outlook fallback. Classic Outlook for Windows renders email with the Microsoft Word engine, which ignores some CSS, including border-radius. Rounded corners and a fully clickable shape need VML (Vector Markup Language) there. Check Can I email for current support of any property.

Four ways to code a bulletproof email button

Each style below includes copy-ready code. Swap in your own URL, label, and colors. The examples use a blue (#1d4ed8) that keeps white text easy to read.

1. Padded button

A padded button sets the background color and padding on a table cell and puts the label in a link inside it. It is the simplest style to write and update, and it works in most email clients.

Padded email button HTML

Padded buttons at a glance:

  • Pro: Easy to code and update.
  • Con: Only the link text is clickable by default, so a reader who taps the padding may get no response. Adding padding to the link with display:inline-block widens the tap area in most clients. Classic Outlook ignores that padding, so test there.

2. Border-based button

A border-based button skips the table padding. It sets thick borders in the same color as the background on the link itself, which stretches the colored area around the label.

Border-based email button HTML

Border-based buttons at a glance:

  • Pro: Short code, and the whole colored area is clickable because the borders belong to the link.
  • Con: Classic Outlook can shrink these buttons, because it does not treat link tags as block-level elements.

3. Combined padded and border button

A combined button uses cell padding, a solid border, and a background color together. The border gives you an outline, and the padding sets the size.

Combined padded and border email button HTML

Combined buttons at a glance:

  • Pro: Easy to update, and background images are supported.
  • Con: Styles live on both the cell and the link, so update both whenever the design changes.

4. VML button

VML is the Outlook-specific route. A conditional comment gives classic Outlook for Windows a VML shape, and every other client gets a standard HTML link. The generator at buttons.cm writes VML button code for you.

VML email button HTML with Outlook fallback

VML buttons at a glance:

  • Pro: The whole button is clickable, and rounded corners render in classic Outlook.
  • Con: More code in a language that is easy to get wrong, so test click tracking on the VML link.

How to choose a button style

Start with the padded style for most emails, and add the VML version when a large share of your list reads in classic Outlook. Check your own email client report before you decide.

Design and accessibility rules for email buttons

Code that renders is only half of a good button. These rules make it easy to see, read, and tap. For layout and brand guidance beyond the button, see our guide to email design.

Follow these rules for every button:

  • Contrast. WCAG asks for a contrast ratio of at least 4.5:1 for normal-size text (WCAG contrast minimum). Pale greens and pastels with white text often fail, so check your colors with a contrast checker.
  • Size. WCAG 2.2 sets a minimum target size of 24 by 24 CSS pixels. A height of around 44 pixels is a common goal for touch screens.
  • Label. Start with a verb and say what happens next. "Get the guide" beats "Click here." Our guide to microcopy covers button wording.
  • One primary button. Give each email one main action, and repeat that same button instead of adding competing ones.
  • Space. Leave room around the button so nearby links do not get tapped by mistake.
  • Dark mode. Some clients change colors in dark mode. Use a solid background color on the button and test it in both modes.

Pro tip

Write each label so it makes sense on its own. Screen reader users often pull up a list of every link in an email, and "Get the guide" still works out of context where "Click here" does not.

Three emails with images turned off

These three emails show what readers see when images are blocked, and then what they see with images on. The button decides which version still works.

Image-only email: Valfre

With images off: The Valfre launch email shows nothing to act on. Everything above the footer, including the shop button, is image content.

Why this image-blocked email fails:

  • No live button. A click-through rate needs something to click.
  • No readable copy. The message and call to action live in the image.
  • No alt text. Without alt attributes, the reader gets no hint of what the image holds or why it is worth downloading.

With images on:

Product details in text: Slowly Downward Manufactory

With images off: If your product is an image, it is easy to shrug off the button. Slowly Downward Manufactory shows otherwise. You cannot see the print, but the title, edition, size, and price are text, and a black button invites you to visit the landing page.

Why this image-blocked email works:

  • Details in text. The product description survives with images off.
  • A live button with personality. The label has memorable microcopy and stays visible.

With images on:

Full design in code: Quip

With images off: The Quip newsletter keeps its structure, colors, and a rounded Read more button, so the design holds together.

Why this image-blocked email works:

  • Layout in code. Colored panels come from background colors, not pictures.
  • Readable copy. The text is styled to read well without images.
  • A visible button. The call to action shows exactly as designed.

With images on:

The pattern is the same in all three. Images add engagement, and text with a live button carries the message.

Test your email buttons before you send

Send a test to the inboxes your subscribers use before every campaign. Litmus has a longer guide to bulletproof buttons if you want to go deeper.

Run this checklist on every template:

  • Classic Outlook. Check the size, corners, and click area in Outlook for Windows.
  • Gmail and Apple Mail. Test both, on desktop and on a phone.
  • Images off. Turn off image loading and confirm the button still shows its label and color.
  • Dark mode. Check that the text and background still contrast.
  • Links. Click every button and confirm the destination and your click tracking.
  • Keyboard and screen reader. Tab to the button and confirm the label reads clearly.

Build email buttons in ActiveCampaign

You do not have to hand-code every button. The drag-and-drop email designer in ActiveCampaign includes a button block, so you can set the label, link, and colors in a few clicks. When you need custom markup, such as the VML wrapper above, add it with the HTML block.

How ActiveCampaign helps with email buttons:

  • Button block. Set the label, link, and color in the designer, with no code.
  • HTML block. Paste any of the code above when you want full control.
  • Personalization. Use dynamic content to show different button text or links to different segments.
  • Active Intelligence. It can help draft button copy and variations, and you choose the version that fits your audience.

Design emails that work in every inbox

No credit card required. Instant set-up.

Frequently asked questions

  • What is a bulletproof email button?A bulletproof email button is a call-to-action button built from HTML and CSS instead of an image. Because the email client draws it from live text and a coded background color, it displays and stays clickable even when images are blocked.

What is a bulletproof email button?

A bulletproof email button is a call-to-action button built from HTML and CSS instead of an image. Because the email client draws it from live text and a coded background color, it displays and stays clickable even when images are blocked.

  • Do I need VML for email buttons?Only if you want rounded corners or a fully clickable button in classic Outlook for Windows. Without VML, a padded or border-based button still works there, with square corners. Many senders add VML when a large share of their list reads in classic Outlook.

Do I need VML for email buttons?

Only if you want rounded corners or a fully clickable button in classic Outlook for Windows. Without VML, a padded or border-based button still works there, with square corners. Many senders add VML when a large share of their list reads in classic Outlook.

  • How big should an email button be?WCAG 2.2 sets a minimum target size of 24 by 24 CSS pixels. For touch screens, a height of around 44 pixels is a common goal. Leave space around the button so nearby links are not tapped by accident.

How big should an email button be?

WCAG 2.2 sets a minimum target size of 24 by 24 CSS pixels. For touch screens, a height of around 44 pixels is a common goal. Leave space around the button so nearby links are not tapped by accident.

  • Why does my email button look different in Outlook?Classic Outlook for Windows renders email with the Microsoft Word engine, which ignores some CSS, including border-radius. Use table-cell padding for the base button, add a VML version for rounded corners, and test in Outlook before you send.

Why does my email button look different in Outlook?

Classic Outlook for Windows renders email with the Microsoft Word engine, which ignores some CSS, including border-radius. Use table-cell padding for the base button, add a VML version for rounded corners, and test in Outlook before you send.

  • Can I use an image as an email button?You can, but a blocked image leaves nothing to click. If you use one, add alt text and keep a text link nearby. A coded button is the safer choice for your main call to action.

Can I use an image as an email button?

You can, but a blocked image leaves nothing to click. If you use one, add alt text and keep a text link nearby. A coded button is the safer choice for your main call to action.

← All articles

What this article says

More in MarTech & AdTech

All →
7 Best Email Capture Tools (With Examples)
Activecampaign

7 Best Email Capture Tools (With Examples)

Marketing Automation Workflows: 11 Examples
Activecampaign

Marketing Automation Workflows: 11 Examples

How to Create a Sign-Up Form That Converts
Activecampaign

How to Create a Sign-Up Form That Converts

10 Types of Emails to Send, With Examples
Activecampaign

10 Types of Emails to Send, With Examples

How to Handle Bot Clicks in Email Marketing
Activecampaign

How to Handle Bot Clicks in Email Marketing

60+ Newsletter Ideas Readers Want to Open
Activecampaign

60+ Newsletter Ideas Readers Want to Open

More from Activecampaign

7 Best Email Capture Tools (With Examples)
Activecampaign

7 Best Email Capture Tools (With Examples)

Marketing Automation Workflows: 11 Examples
Activecampaign

Marketing Automation Workflows: 11 Examples

How to Create a Sign-Up Form That Converts
Activecampaign

How to Create a Sign-Up Form That Converts

10 Types of Emails to Send, With Examples
Activecampaign

10 Types of Emails to Send, With Examples

How to Handle Bot Clicks in Email Marketing
Activecampaign

How to Handle Bot Clicks in Email Marketing

60+ Newsletter Ideas Readers Want to Open
Activecampaign

60+ Newsletter Ideas Readers Want to Open