Changing the background image for only part of a table - html

I am trying to change the background image for only part of the table, specifically the first two td elements and leave the third unchanged. I've tried wrapping the first two td in a div and changing the background image of the div but that didn't work.
I've look around elsewhere on the site and I couldn't seem to find anything similar to this question. Here is the code I have:
<div height='200px' width='600px'>
<table width='100%' style='display: inline-block; float: left; border-collapse: collapse; background-image: url(http://image.em.insightvacations.com/lib/fe8e1570706c037e7c/m/2/f1501c18-c3db-4fcd-818b-45d6199cc2e0.jpg'>
<tr>
<td width='33%' style='vertical-align: top; padding: 20px'><img src="http://image.em.insightvacations.com/lib/fe8e1570706c037e7c/m/2/1c64a1a7-519b-406a-8f29-6944c179a86f.png" alt="Anniversery badge"> </td>
<td align='left' width='33%' style="color: white; font-family: 'Effra', Monterrat, sans-serif; font-size: 25px; line-height: 22px; padding: 20px; background-color: rgba(166, 208, 237, 0.65); font-weight: bold">GLORIES OF GREECE<br><br><br>
<font style="font-family: 'Effra', Monterrat, sans-serif; font-size: 16px; line-height: 15px;"> 8 days <br>
<div align='center'> <button> EXPLORE NOW </button> </div>
</font>
</td>
<td width='34%' align='left' bgcolor="#081e3f" style="color: white; font-family: 'Effra', Monterrat, sans-serif; font-size: 16px; line-height: 1.5; padding: 20px">This popular journey covers a multitude of noteworhty ancient sitesm majestic monuments and mystical monasteries</td>
</tr>
</table>
</div>

Wrap there two tds into table and apply background to table.
Codepen demo.
<div height='200px' width='600px'>
<table width='100%' style='display: inline-block; float: left; border-collapse: collapse;'>
<tr>
<td width='66%' style='background-image: url(http://image.em.insightvacations.com/lib/fe8e1570706c037e7c/m/2/f1501c18-c3db-4fcd-818b-45d6199cc2e0.jpg'>
<table width='100%'>
<tr>
<td width="50%" style="vertical-align: top; padding: 20px;">
<img src="http://image.em.insightvacations.com/lib/fe8e1570706c037e7c/m/2/1c64a1a7-519b-406a-8f29-6944c179a86f.png" alt="Anniversery badge">
</td>
<td align='left' width='50%' style="color: white; font-family: 'Effra', Monterrat, sans-serif; font-size: 25px; line-height: 22px; padding: 20px; background-color: rgba(166, 208, 237, 0.65); font-weight: bold">
GLORIES OF GREECE
<br>
<br>
<br>
<font style="font-family: 'Effra', Monterrat, sans-serif; font-size: 16px; line-height: 15px;">
8 days <br>
<div align='center'> <button> EXPLORE NOW </button> </div>
</font>
</td>
</tr>
</table>
</td>
<td width='34%' align='left' bgcolor="#081e3f" style="color: white; font-family: 'Effra', Monterrat, sans-serif; font-size: 16px; line-height: 1.5; padding: 20px">This popular journey covers a multitude of noteworhty ancient sitesm majestic monuments and mystical monasteries</td>
</tr>
</table>
</div>

Related

Responsive mail signature

I've been trying to make responsive mail signature. This is my code.
<!-- --><!-- 1. Google Fonts Code --><!-- 2. Dotty Cell Borders -->
<p style="border-bottom: 1px solid #000; color: -internal-quirk-inherit;"> </p>
<table class="table" style="background-color: #ffffff; font-family: lato; text-align: left; color: #000000; font-size: 14px;">
<tbody>
<tr style="height: 1px;">
<th class="table__heading" style="width: 100px; padding-right: 20px; padding-left: 20px; text-align: center;" rowspan="4">
<p><img src="http://serwer1528495.home.pl/jemiol/SIGNATURE/LOGO.png" width="90px" /></p>
<p><img src="http://serwer1528495.home.pl/jemiol/SIGNATURE/FACEBOOK.png" width="25px" /> <img src="http://serwer1528495.home.pl/jemiol/SIGNATURE/INSTAGRAM.png" width="25px" /> <img src="http://serwer1528495.home.pl/jemiol/SIGNATURE/LINKEDIN.png" width="25px" /></p>
</th>
<td class="table__content" style="font-weight: bold;" colspan="4">DAMIAN DĄBROWSKI</td>
</tr>
<tr style="height: 1px;">
<td class="table__content" colspan="4">ADMINISTRATOR STRONY INTERNETOWEJ</td>
</tr>
<tr style="height: 1px;">
<td class="table__content" colspan="4"><a style="color: #000000; text-decoration: none;" href="tel:-">-</a></td>
</tr>
<tr style="height: 1px;">
<td class="table__content" colspan="4"><a style="color: #000000; text-decoration: none;" href="mailto:-">-</a></td>
</tr>
</tbody>
</table>
<p style="border-top: 1px solid #000; color: -internal-quirk-inherit;"> </p>
I found an example how to make second column responsive, but I spent hours on it and can't apply it to my signature...
This is this example:
<!--[if gte mso 9]>
<table cellspacing=0><tr><td style="font-family: Arial; font-size: 10pt; color: #fff; background-color: orange; width: 250px; height: 100px; padding: 3px; vertical-align: top">
<![endif]-->
<div style="float: left; font-family: Arial; font-size: 10pt; color: #fff; background-color: orange; width: 250px; height: 100px; padding: 3px; vertical-align: top">
<strong>{Display name}</strong><br>Phone {Phone}<br>Email {E-mail}
</div>
<!--[if gte mso 9]>
</td><td style="font-family: Arial; font-size: 10pt; color: #fff; background-color: red; width: 250px; height: 100px; padding: 3px; vertical-align: top">
<![endif]-->
<div style="float: left; font-family: Arial; font-size: 10pt; color: #fff; background-color: red; width: 250px; height: 100px; padding: 3px; vertical-align: top">
<strong>Company.com</strong>
​</div>
<span style="clear: both;"></span>
<!--[if gte mso 9]>
</td></tr></table>
<![endif]-->
Can someone please tell me how to make it right?
It's recommended to use tables when doing the HTML layout for mails. The different email readers are not really barely compatible with other than tables.
I'd go with a two-column table to achieve what you are looking for, as float is one of that properties that not all readers understand
Something like
<table>
<tr>
<td>
<strong>{Display name}</strong><br>Phone {Phone}<br>Email {E-mail}
</td>
<td>
<strong>Company.com</strong>
</td>
</tr>
</table>

I Need Help Alignin 2 TD in My Email Signature HTML

For some time I've been developing this simple HTML code to use it as my signature email. Recently I've add the .gif photo and links to make it look better. I can't put the Instagram icon and the WhatsApp icon side by side, I've tried a lot of things on the internet, but didn't managed to make it.
Here's the code for my HTML signature.
this is a screenshot of my signature
<table cellspacing="0" cellpadding="0" border="0" style="width: 590px;">
<tbody><tr>
<td style="border-right: 2px solid #a9a9a9; padding-right: 0px; vertical-align:middle" valign="middle"><img id="BeattorLogo" data-class="external" src="https://beattor.com.br/wp-content/uploads/2020/04/Gif-Assinatura-do-Email-2.gif" height="150px" walt="Beattor Comunicacao" style="display: block"></td>
<td style="vertical-align: middle; padding-left: 10px;">
<table cellspacing="0" cellpadding="1" border="0">
<tbody><tr>
<td style="font-family: Verdana; font-size: 12pt; color: rgb(51, 51, 51);">
<font style="font-weight: bold; font-family: Verdana; font-size: 12pt; color: rgb(51, 51, 51);">Thiago Dam</font>
</td>
</tr>
<tr>
<td style="padding-bottom: 5px; font-weight: bold; font-family: Verdana; font-size: 10pt; color: rgb(51, 51, 51);">
<font style="font-family: Verdana; font-size: 10pt; color: rgb(51, 51, 51);">CEO e Diretor Comercial</font>
</td>
</tr>
<tr>
<td style="font-family: Verdana; font-size: 10pt;"><font style="color: #333333; font-size: 10pt; font-family: Verdana">Site: beattor.com.br</font></td>
</tr>
<tr>
<td style="font-family: Verdana; font-size: 10pt;"><font style="color: #333333; font-size: 10pt; font-family: Verdana">Email: thiago.dam#beattor.com.br</font></td>
</tr>
<tr>
<td style="padding-right: 100px; font-family: Verdana; font-size: 10pt;"><font style="color: #333333; font-size: 10pt; font-family: Verdana">Contato: <font style="color: #333333; font-size: 10pt; font-family: Verdana">(21) 96407-9707</font></td>
</tr>
<tr>
<td style="padding-right: 100px; font-family: Verdana; font-size: 10pt;"><font style="color: #333333; font-size: 10pt; font-family: Verdana"> <font style="color: #333333; font-size: 10pt; font-family: Verdana"></font></td>
</tr>
<tr>
<td style="padding-right: 100px; font-family: Verdana; font-size: 10pt;"><img id="InstagramLogo" data-class="external" src="https://beattor.com.br/wp-content/uploads/2020/04/Instagram-Logo-Beattor-Comunicacao.png" height="30px" walt="Instagram da Beattor" style="display: block">
</td>
</tr>
<tr>
<td style=" font-family: Verdana; font-size: 10pt;"><img id="WhatsApp Logo" data-class="external" src="https://beattor.com.br/wp-content/uploads/2020/04/WhatsApp-Logo-Beattor-Comunicacao.png" height="30px" walt="WhatsApp da Beattor" style="display: block">
</td>
</tr>
</tr>
</tr>
</tbody>
</table>
If you want both your social icons on the same line, one way of doing it would be to firstly remove the closing row </tr>/ opening new line <tr> between them (I've done so in the snippet. After that, float your icons left in the social icon tds (add float:left; into your style with the font-size and family) and then you should be good to go. I added a small margin-left (10px) to the whatsapp one to put a small space between them. I also removed the 100px padding from the instagram.
Hope this helps!
<table cellspacing="0" cellpadding="0" border="0" style="width: 590px;">
<tbody>
<tr>
<td style="border-right: 2px solid #a9a9a9; padding-right: 0px; vertical-align:middle" valign="middle">
<img id="BeattorLogo" data-class="external" src="https://beattor.com.br/wp-content/uploads/2020/04/Gif-Assinatura-do-Email-2.gif" height="150px" walt="Beattor Comunicacao" style="display: block">
</td>
<td style="vertical-align: middle; padding-left: 10px;">
<table cellspacing="0" cellpadding="1" border="0">
<tbody>
<tr>
<td style="font-family: Verdana; font-size: 12pt; color: rgb(51, 51, 51);">
<font style="font-weight: bold; font-family: Verdana; font-size: 12pt; color: rgb(51, 51, 51);">Thiago Dam</font>
</td>
</tr>
<tr>
<td style="padding-bottom: 5px; font-weight: bold; font-family: Verdana; font-size: 10pt; color: rgb(51, 51, 51);">
<font style="font-family: Verdana; font-size: 10pt; color: rgb(51, 51, 51);">CEO e Diretor Comercial</font>
</td>
</tr>
<tr>
<td style="font-family: Verdana; font-size: 10pt;">
<font style="color: #333333; font-size: 10pt; font-family: Verdana">Site: beattor.com.br</font>
</td>
</tr>
<tr>
<td style="font-family: Verdana; font-size: 10pt;">
<font style="color: #333333; font-size: 10pt; font-family: Verdana">Email: thiago.dam#beattor.com.br</font>
</td>
</tr>
<tr>
<td style="padding-right: 100px; font-family: Verdana; font-size: 10pt;">
<font style="color: #333333; font-size: 10pt; font-family: Verdana">Contato:
<font style="color: #333333; font-size: 10pt; font-family: Verdana">(21) 96407-9707</font>
</td>
</tr>
<tr>
<td style="padding-right: 50px; font-family: Verdana; font-size: 10pt;">
<font style="color: #333333; font-size: 10pt; font-family: Verdana">
<font style="color: #333333; font-size: 10pt; font-family: Verdana"></font>
</td>
</tr>
<tr>
<td style="font-family: Verdana; float:left; font-size: 10pt;">
<img id="InstagramLogo" data-class="external" src="https://beattor.com.br/wp-content/uploads/2020/04/Instagram-Logo-Beattor-Comunicacao.png" height="30px" walt="Instagram da Beattor" style="display:block; ">
</td>
<td style="font-family: Verdana; margin-left:10px; float:left; font-size: 10pt;">
<img id="WhatsApp Logo" data-class="external" src="https://beattor.com.br/wp-content/uploads/2020/04/WhatsApp-Logo-Beattor-Comunicacao.png" height="30px" walt="WhatsApp da Beattor" style="display:block;">
</td>
</tr>
</tr>
</tr>
</tbody>
</table>

How Can I add an icon next to anchor tag in HTML email?

How can I have an image (little arrow on the right) set next to an anchor tag <a> and keep them both aligned vertically and horizontally. I've been trying this in multiple ways but came across errors with every method I tried. either the <a> tag wont work (not clickable) in html emails or the arrow would be outside the clickable area. I only need one of these following codes .Here's some what Iv'e tried:
First code: the problem here is: if the user clicked on the arrow it wont response, because it's not inside the <a> tag, but this is working
<table cellpadding="0" cellspacing="0" border="0" width="33%" align="right" style="font-family: Arial, Helvetica, sans-serif; text-align: center;">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#007cb0; font-weight: normal;text-align: center;">
<tr>
<td align="left" style="padding: 15px 0px 15px 30px; text-decoration: none; font-size: 11px; text-align: center; font-family: arial, sans-serif; color: #FFFFFF; font-weight: 700; vertical-align: top; line-height: normal !important;">
<a style="font-size: 16px; text-align: center; font-family: arial, sans-serif; color: #FFFFFF; font-weight: 700; cursor: pointer;">Go to Link</a>
</td>
<td align="right" style="text-align: left; color: #FFFFFF; font-weight: 700;"><img src="https://png.icons8.com/metro/50/ffffff/forward.png" width="15"></td>
<td><img src="http://via.placeholder.com/5/007cb0" width="5" /></td>
</tr>
</table>
</td>
</tr>
</table>
Second code: I couldn't get the text vertical aligned within the <td>
<table cellpadding="0" cellspacing="0" border="0" width="33%" align="right" style="font-family: Arial, Helvetica, sans-serif; text-align: center;">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#007cb0; font-weight: normal;text-align: center;">
<tr>
<td height="50" align="left" style="text-decoration: none; font-size: 11px; text-align: center; font-family: arial, sans-serif; color: #FFFFFF; font-weight: 700; vertical-align: top; line-height: 100% !important;">
<a style="height:100%;font-size: 16px; text-align: center; font-family: arial, sans-serif; color: #FFFFFF; font-weight: 700; cursor: pointer; display: block">Go to Link <img src="https://png.icons8.com/metro/50/ffffff/forward.png" width="20" style="vertical-align: middle;"></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
Third code The problem here is: It didn't work in any email client and the link is not clickable.
<table class="mobile" cellpadding="0" cellspacing="0" border="0" width="33%" align="right" style="font-family: Arial, Helvetica, sans-serif;">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#007cb0; font-weight: normal;">
<tr>
<td>
<a style="border: 1px solid red; padding: 20px;display: block; font-size: 16px; text-align: center; font-family: arial, sans-serif; color: #FFFFFF; font-weight: 700; cursor: pointer;">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-size: 16px; text-align: center; font-family: arial, sans-serif; color: #FFFFFF; font-weight: 700; cursor: pointer;">
<tr style="font-size: 16px; text-align: left; font-family: arial, sans-serif; color: #FFFFFF; font-weight: 700; cursor: pointer;">
<td align="left" style="text-decoration: none; font-size: 16px; text-align: center; font-family: arial, sans-serif; color: #FFFFFF; font-weight: 700; vertical-align: top; line-height: normal !important;">
GET VERSATILE
</td>
<td align="right" style="text-align: center; color: #FFFFFF; font-weight: 700;"><img src="https://png.icons8.com/metro/50/ffffff/forward.png" width="15" /></td>
</tr>
</table>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
Summaries:
I need this <a> tag to have an arrow next to it and to be Clickable all around the blue area.
Thanks for the help.
This is working in most of email clients, and even if I changed the text inside the anchor tag.
hope that would help.
<table class="mobile" cellpadding="0" cellspacing="0" border="0" width="33%" align="right" style="font-family: Arial, Helvetica, sans-serif;">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#007cb0;font-family: Arial, Helvetica, sans-serif;font-weight: bold;">
<tr>
<td class="links" style="padding: 10px; color: #ffffff; vertical-align: middle; text-align: center; font-family: Arial, Helvetica, sans-serif;font-weight: bold;"><a style="text-align: center; display: block;cursor: pointer;font-family: Arial, Helvetica, sans-serif; color: #ffffff !important; text-decoration: none; font-size: 16px; line-height: 20px; font-weight: bold;" pm-link="landingpage1" pm-link-default-url="global_landingpage">GO TO LINK<img src="http://via.placeholder.com/15/007cb0" width="15" alt="" /><img src="https://png.icons8.com/metro/50/ffffff/forward.png" width="20" style="vertical-align: middle;padding: 0 0 4px 0;max-width: 20px" /></a></td>
</tr>
</table>
</td>
</tr>
</table>
Not sure if you have thought of this but it should be as easy as adding an a tag around the image for the first question.
Try this below and see if it works for you. I have just added your a tag from the sibling td just to give you an idea.
<table cellpadding="0" cellspacing="0" border="0" width="33%" align="right" style="font-family: Arial, Helvetica, sans-serif; text-align: center;">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#007cb0; font-weight: normal;text-align: center;">
<tr>
<td align="left" style="padding: 15px 0px 15px 30px; text-decoration: none; font-size: 11px; text-align: center; font-family: arial, sans-serif; color: #FFFFFF; font-weight: 700; vertical-align: top; line-height: normal !important;">
<a style="font-size: 16px; text-align: center; font-family: arial, sans-serif; color: #FFFFFF; font-weight: 700; cursor: pointer;">Go to Link</a>
</td>
<td align="right" style="text-align: left; color: #FFFFFF; font-weight: 700;"><img src="https://png.icons8.com/metro/50/ffffff/forward.png" width="15"></td>
<td><a style="font-size: 16px; text-align: center; font-family: arial, sans-serif; color: #FFFFFF; font-weight: 700; cursor: pointer;"><img src="http://via.placeholder.com/5/007cb0" width="5" /></a></td>
</tr>
</table>
</td>
</tr>
</table>
Hope this answer works for you.
Edited
Now that I know you're making a button that aligns to the right, I have a better approach for you.
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="right">
<tr>
<td><!-- The button code -->
<table role="presentation" cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="background: #007cb0; text-align: center;">
<a href="#" target="_blank" style="background: #007cb0;
border: 15px solid #007cb0; font-family: sans-serif; font-size: 16px;
line-height: 110%; text-align: center; text-decoration: none !important;
display: block; font-weight: 700;"><span style="color:#ffffff;"> Go to Link <img src="https://png.icons8.com/metro/50/ffffff/forward.png" width="15">
</span></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
This code will right-align and look presentable in every email client. It does not quite look perfect in Outlook. To do that, you need to add a spacer table specifically for Outlook.
I am deleting the older post and code, but honestly, it's the same thing I posted yesterday with added which gives you a reliable form of padding.
Could you tell why are you using table formatting for making button-styled links? Is that specific for html-email? This seems easier and after some customizing will give the same look:
a {
display: inline-block;
border: 1px solid black;
padding: 10px;
}
Link <span> ❯</span>
OK then just add/adjust margin and padding to make clickable area larger
a{
display: inline-block;
position: relative;
z-index: 1;
padding: 1em;
margin: -1em;
}
td img{
padding-bottom: 5px;
}
https://jsfiddle.net/33q09cy0/
and add the image inside the a tag reference.
<td align="left" style="padding: 15px 0px 15px 30px; text-decoration: none; font-size: 11px; text-align: center; font-family: arial, sans-serif; color: #FFFFFF; font-weight: 700; vertical-align: top; line-height: normal !important;">
<a style="font-size: 16px; text-align: center; font-family: arial, sans-serif; color: #FFFFFF; font-weight: 700; cursor: pointer;">Go to Link</a>
<img src="https://png.icons8.com/metro/50/ffffff/forward.png" width="15">
</td>

Background color not working in Outlook

I took a template and customized it. I have added a background color, it shows up in Chrome when I load the .html file in Chrome, but when I try and load this with outlook the background color does not appear. I have looked around but I am new to HTML so I didn't quiet understand how to apply those answers to my specific situation, especially because i did not write all of this code, I was given this to work on.
${config_styles_link(color: #227700; text-decoration: none !important)}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
<table cellpadding="0" border="0" style="line-height: 1.2em; font-family:
'Helvetica Neue', Helvetica, Arial, sans-serif; border-spacing: 0px; font-
size: 100%; font-color: white; border: 0; background-color: #fff;"
cellspacing="0" width="100%">
<tbody>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="650"
align="center" style="line-height: 1.2em; font-family: 'Helvetica Neue',
Helvetica, Arial, sans-serif; border-spacing: 0px; font-size: 100%;
background-color: 252734; border: 1px solid #ccc; margin-top: 5px; margin-
bottom: 5px;" >
<tbody>
<tr>
<td style="padding: 16px 16px 0px 20px; vertical-align: middle;
font-size: 18px; color: grey;" align="left">
</td>
<td width="200" style="padding:16px 16px 0px 14px;vertical-
align:middle; line-height:12px;" align="right">
</td>
</tr>
<tr>
<td colspan="2" style="padding: 8px 16px 8px 20px;">
<imgsrc="static.pexels.com/photos/11406/c12ee0f379643a278198b2086afd3b9c.jp"
style="width:600px;height:142px;">
<p style= "color: D2D5EB">Hello ${user_first_name},</p>
<p style= "color: D2D5EB">
We are looking forward to your participation in ${webcast_title}.
<div style="border:1px white; height: 60px; width: 180px; margin-left: 80px;
font-family: arial; font-size: 17px; font-weight: 600; color: D2D5EB;
background-color: 252734; clear:both;">
${webcast_details}
</div>
<img src="https://thumbs.dreamstime.com/z/skull-human-size-robot-isolated-
black-35652577.jpg" style="width:104px;height:142px;">
</p>
<hr style="clear:both;">
<p> </p>
<p style ="clear:both; color: D2D5EB;">You can test your system now to make
sure you can view our webinars and videos: ${help_viewers_systemtest}.</p>
<p style="color: D2D5EB;">${channel_webcasts}</p>
<p style ="font-family: arial; font-size: 11px; font-weight: 600; color:
grey; text-align: center;"> In the meantime you can check out our website by
clicking here for more
information about what we do, future events and to check out our blog!</p>
<p style="font-family: arial, sans-serif; font-size: 12px; color:
D2D5EB;">Thank you,<br />
${webcast_channel_title}</p>
</td>
</tr>
<tr>
<td style="padding: 0px 16px 0px 20px; font-family:
Arial,Helvetica,sans-serif; color: #000; font-size: 11px; color: D2D5EB;">
<p>You received this email because you are subscribed to <a
style="color: D2D5EB;; text-decoration: none !important"
href="${webcast_channel_url}&utm_content=channel">${webcast_channel_title}
</a> on BrightTALK.</p>
</td>
<td width="120" style="padding:4px 16px 0px 0px;vertical-
align:top;" align="right">
<img title="BrightTALK"
src="https://p.brighttalk.com/platform_email/brighttalklogo.png"
alt="BrightTALK" width="120" height="34" />
</td>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="650"
align="center" style="padding: 0px 0px; line-height: 1em;">
<tbody>
<tr>
<td style="padding-top: 0px; font-family: Arial,Helvetica,sans-
serif; color: #000; font-size: 11px; background-color: 252734;">
<p style="font-size:11px; color: D2D5EB">All times are shown in your time
zone: ${user_timezone_alias}</p>
<p style="color: D2D5EB;">To update your email preferences,
please visit: ${user_link_preferences}<br />
Should you wish to unsubscribe from this channel please
visit: ${user_link_mybrighttalk}</p>
<p style="color: D2D5EB;">
For more information, please visit us at <a style="color:
#227700; text-decoration: none !important"
href="http://www.brighttalk.com">www.brighttalk.com</a> <br />
BrightTALK™, 501 Folsom Street, 2nd Floor, San
Francisco, CA 94105</p>
<p style="color: D2D5EB;">${email_unsubscribe_link}</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</body>
</html>
The background appears white in outlook, everything else turns up fine. I want the background color to be a navy-ish color.
The background appears white because you have the
background-color: #fff;
Change the #fff white colour for another colour you want.
Try, for example:
background-color: #0E061C;

How can I make this email signature responsive/mobile friendly?

I have an email signature which consists of a simple table (one row, two columns). The first column has a logo, the second column has all the contact details.
I would like to make it responsive so that on small devices the logo is shown above, and the contact details below (so effectively the columns turn into rows). Currently, on small devices, the table gets squeezed so that the contact details are not readable.
<div style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<div class="m_159975109461180827gmail_signature">
<div dir="ltr">
<div dir="ltr">
<table style="color: #000000; font-family: 'Times New Roman'; font-size: medium; background: none; margin: 0px; padding: 0px; border: 0px initial initial;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="font-family: arial, sans-serif; margin: 0px; border-top: 0px; border-right-width: 3px; border-right-color: #d2ac67; padding: 0px 7px 0px 0px; vertical-align: middle;" valign="top"><img class="CToWUd" src="http://mywebsite.com/logo-small.png" alt="" /></td>
<td style="font-family: arial, sans-serif; margin: 0px; padding: 0px 0px 0px 12px;">
<table style="background: none; margin: 0px; padding: 0px; height: 93px; border: 0px initial initial;" border="0" width="300" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="font-family: Arial, Helvetica, sans-serif; margin: 0px; padding-bottom: 5px; color: #d2ac67; font-size: 14px;" colspan="2"><strong>My Name</strong></td>
</tr>
<tr>
<td style="font-family: Arial, Helvetica, sans-serif; margin: 0px; color: #333333; font-size: 12px;" colspan="2"><span style="color: #d2ac67;">My position • Name of the company</span></td>
</tr>
<tr>
<td style="font-family: Arial, Helvetica, sans-serif; margin: 0px; vertical-align: top; width: 20px; color: #d2ac67; font-size: 12px;" valign="top" width="20">p:</td>
<td style="font-family: Arial, Helvetica, sans-serif; margin: 0px; vertical-align: top; color: #333333; font-size: 12px;" valign="top"><a style="color: #1155cc;" href="tel:+44%2020%207099%206646" target="_blank">+44 1234566</a> <span style="color: #d2ac67;">m: </span><a style="color: #1155cc;" href="tel:+44%207491%20044801" target="_blank">+44 1</a>234567</td>
</tr>
<tr>
<td style="font-family: Arial, Helvetica, sans-serif; margin: 0px; vertical-align: top; width: 20px; color: #d2ac67; font-size: 12px;" valign="top" width="20">a:</td>
<td style="font-family: Arial, Helvetica, sans-serif; margin: 0px; vertical-align: top; color: #333333; font-size: 12px;" valign="top">some addresss</td>
</tr>
<tr>
<td style="font-family: Arial, Helvetica, sans-serif; margin: 0px; vertical-align: top; width: 20px; color: #d2ac67; font-size: 12px;" valign="top" width="20">w:</td>
<td style="font-family: Arial, Helvetica, sans-serif; margin: 0px; vertical-align: top; color: #333333; font-size: 12px;" valign="top">link to the website</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
Thank you all in advance for your help/guidance.
If you want to use a table create another table with your rows as columns and assign each table a class. Use css to hide and show the different tables using media calls.