buttons

All CSS for buttons is found in the framework. Buttons are made entirely of HTML and CSS and should never be images. The default button is dark gray with white text and a dark gray border.

Note: Our buttons are coded so that the entire area of the button is clickable and not just the text. To make this method work in Outlook Desktop on Windows, we included a border on the anchor tag. This forces Outlook to render the top and bottom padding and the border radius on the button. Otherwise none of the padding would render and it would lose the appearance of a button.

Examples

HTML

<table border="0" cellpadding="0" cellspacing="0" role="presentation">
  <tr>
    <td align="center" valign="top" class="button button-default">
      <a href="#" target="_blank" class="button-a button-default-a">Button</a>
    </td>
  </tr>
</table>

Rules

Be sure to include the .button and .button-a classes as shown above.

To change the button color, change the .button-default class to either .button-accent for blue or .button-reverse for white, then change .button-default-a to .button-accent-a (white text on blue button), .button-reverse-a-default (dark gray text on white button) or .button-reverse-a-accent (blue text on white button).

The text color should match the background color of the card, with the exception of a light gray card, where the button text is white. Please note, the CSS for the button hover effect is in a separate style tag in the framework file with the data-embed attribute added to the style. This prevents the CSS inliner tool from removing this CSS.

In the rare circumstance where a button may need to be a color other than one of the included options, use the HTML and CSS included in the framework file as a guide to create it.
OVERVIEW

Description

EDS purpose and structure

Instructions

how to use the EDS

Resources

links and information about HTML email

FRAMEWORK

Email Framework

standard email framework

ATOMS

buttons

EDS buttons

colors

EDS color palette

fine print

EDS fine print

h1

EDS H1

h2

EDS H2

h3

EDS H3

h4

EDS H4

links

EDS text links

p

EDS p

small text

EDS small text

spacing

EDS spacing rules

text modifiers

EDS text modifier classes

MODULES

App Module

download our app and app badges

Basic Module

large icon, subheading, body copy and button

LAYOUTS

Columns

how to work with multi-column layouts

Zig-Zag Layout

how to create a zig-zag layout that collapses gracefully on mobile

ADOBE CAMPAIGN

Campaign Shortcodes

shortcodes for Adobe Campaign that import dynamic content or personalization data

Conditional Formatting

how to use if-else formatting to display content

TEMPLATES

Marketing | Content

email template for content marketing

Marketing | Event

email template for event promotion

Marketing | Offer

email template for marketing offer

Newsletter

email template for newsletters