Zig-Zag Layout

Zig-zag layouts are great on desktop, but need to collapse so that everything is in the same order on mobile. This layout uses elements from the columns layout.

How to zig-zag:

  1. Code every row in a zig-zag layout in the order intended for mobile (usually image in the left column and text in the right).
  2. For reversed rows, put the .first/.row-end/.last classes in reverse (so the first column on each row as coded would have .last or .row-end but the last one would have .first).
  3. Add the dir=rtl attribute on the outermost td for the zig-zag rows and add dir=ltr on each column in the zig-zag rows.

Example

Desktop Render

Mobile Render

HTML

<!-- ZIG-ZAG MOLECULE // -->
<table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
	<!-- NORMAL ROW // -->
	<tr>
		<td align="center" valign="top" class="pb24">

			<table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
				<tr>
					<td align="left" valign="top" width="168" class="col first collapse">
						image
					</td>
					<td align="center" valign="middle" width="360" class="col row-end collapse">
						text (use a nested table if there are different styles of text)
					</td>
				</tr>
			</table>

		</td>
	</tr>
	<!-- // NORMAL ROW -->
	<!-- ZIG-ZAG ROW // -->
	<tr>
		<td align="center" valign="top" class="pb24" dir="rtl">

			<table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
				<tr>
					<td align="left" valign="top" width="168" class="col row-end collapse" dir="ltr">
						image
					</td>
					<td align="center" valign="middle" width="360" class="col first collapse" dir="ltr">
						text (use a nested table if there are different styles of text)
					</td>
				</tr>
			</table>

		</td>
	</tr>
	<!-- // ZIG-ZAG ROW -->
	<!-- NORMAL ROW // -->
	<tr>
		<td align="center" valign="top" class="pb24">

			<table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
				<tr>
					<td align="left" valign="top" width="168" class="col first collapse">
						image
					</td>
					<td align="center" valign="middle" width="360" class="col last collapse">
						text (use a nested table if there are different styles of text)
					</td>
				</tr>
			</table>

		</td>
	</tr>
	<!-- // NORMAL ROW -->
</table>
<!-- // ZIG-ZAG MOLECULE -->
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