Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

html e-mail design problem.

Featured Replies

Hi

 

I'm doing a Christmas e-card using mailchimp.

 

I've done the code and sent a test e-mail, but I'm getting some breaks in my table when it's delivered to yahoo.

 

I know all the e-mail clients handle e-mails differently but is there a way I can get it to display properly?

 

Here's my code:

 

<!DOCTYPE html PUBLIC -W3CDTD XHTML 1.0 TransitionalEN httpwww.w3.orgTRxhtml1DTDxhtml1-transitional.dtd/>
<html xmlns=httpwww.w3.org1999xhtml>
    <head>
        <meta http-equiv=Content-Type content=texthtml; charset=UTF-8 />
        <title></title>
        <style></style>
    </head>
    <body>
		<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable">
			<tr>
				<td align="center" valign="top">
					<table cellspacing="0" cellpadding="0" border="0" width="1000">
						<tr>
							<td><img src="topleft.jpg"/></td>
							<td><img src="top.jpg"/></td>
							<td><img src="topright.jpg"/></td>
						</tr>
						<tr>
							<td><img src="left.jpg"/></td>
							<td>
								Content
							</td>
							<td><img src="right.jpg"/></td>
						</tr>
						<tr>
							<td><img src="bottomleft.jpg"/></td>
							<td><img src="bottom.jpg"/></td>
							<td><img src="bottomright.jpg"/></td>
						</tr>	
					</table>
				</td>
			</tr>
		</table>
    </body>
</html>

post-10769-0-83709100-1387273366_thumb.png

 

 

Thanks in advance

 

Kerstey

I would recommend you to first check a pop up preview of your email template before doing test mail. If it's ok and images are not coming properly to the yahoo you can host images anywhere else and provide a link to that image in your html.

agree with the other guys on the images they need to be full URLs and are possibly working on your machine as they have them in the directory somewhere.

 

As for your issue with the lines try adding:

align="left" valign="top"

to all the <td>'s in the inner table. With your images add:

alt="" style="border:none;display:block;" border="0"/>

and anywhere you have border="0" also use style="border:none" as, like you say, different email clients interpret the email differently.

  • Author

The full image urls are created when I uploaded the html file along with the images to mail chimp.

 

Otherwise they wouldn't be showing at all.

 

It's the 2 horizontal gaps in the table that I can't get rid of. There aren't any vertical gaps.

Try putting fixed dimensions into the cells and images ie.

 

    <td width="200" height="200"><img src="topleft.jpg" width="200" height="200" /></td>
 

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.