{"id":36337,"date":"2023-05-25T16:55:52","date_gmt":"2023-05-25T11:25:52","guid":{"rendered":"https:\/\/email.uplers.com\/blog\/?p=36337"},"modified":"2024-05-23T10:49:24","modified_gmt":"2024-05-23T05:19:24","slug":"conditional-css-for-email","status":"publish","type":"post","link":"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/","title":{"rendered":"Conditional CSS for Email ~ The Developer\u2019s Guide To Crafting Responsive Emails"},"content":{"rendered":"\n<p>Ask any email developer worth his salt about his Achilles Heel, and they are most likely to point out the elusiveness of crafting an HTML email that renders uniformly across email clients and devices. While we are all familiar with the issues MSO (Microsoft Outlook) poses in crafting that \u201cuniversal renderable HTML template,\u201d in the text that follows, we will attempt to find a solution to this white whale of every developer.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Issue At Hand<\/h2>\n\n\n\n<p>Before we get to the solution, let\u2019s understand the complexities of the issue at hand. Since its 2007 version, Outlook started employing the services of the Word processor in order to render its emails, which in turn comes with its own challenges, such as its limits on renderable CSS styles, certain HTML tags, and their parameters.&nbsp;<\/p>\n\n\n\n<p>Even though Outlook has the provision of deploying VML (Vector Markup Language) in rendering email templates, it works only on Outlook 2007-2013 version; therefore, developers have to use CSS styles or HTML code differently compared to other email clients that may use Webkit, for instance.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution In Sight&nbsp;<\/h2>\n\n\n\n<p>When the need arises to code separately for MSO and other email clients, conditional code steps in to save the day. Also known as MSO conditional statements or conditional comments, it has the potential to iron out many difficulties that <a href=\"https:\/\/email.uplers.com\/hire-dedicated-email-developer\/\" target=\"_blank\" rel=\"noreferrer noopener\">email developers<\/a> face on a daily basis. Let\u2019s see how that works out.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is the Meaning of Conditional Code?<\/h2>\n\n\n\n<p>Simply said, much like its name, conditional code deploys \u201cif-then\u201d statements to specify actions to be carried out when a particular statement is true. For instance, \u201cIf X is true, then execute Y.\u201d In this particular piece of code, X will be executed only when condition Y is met.&nbsp;<\/p>\n\n\n\n<p>One might say that complex conditional code can only be deployed by programming languages like PHP, Python, JavaScript, C#, etc.; however, markup languages like HTML presented by style sheets like CSS (Cascade Styling Sheets) can handle a limited set of conditional statements. This can help developers to present platform-specific content through a range of different clients and devices. Conditional comments can help you target a plethora of versions of MSO and render emails seamlessly across a range of devices using Conditional CSS via media queries or employ fallback classes within your &lt;style&gt; tags in your email &lt;head&gt;.&nbsp; You could finally deploy those stellar <a href=\"https:\/\/email.uplers.com\/email-newsletter-templates\/\" target=\"_blank\" rel=\"noreferrer noopener\">email newsletter templates<\/a> that you envisioned for your brand!&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conditional Comments with MSO<\/h2>\n\n\n\n<p>Microsoft developed MSO tags (&lt;!&#8211; and \u2192) so that they could be recognized, and their content will be displayed specifically by Outlook. These comments allow developers to add a specific piece of code or a styled element that might have been ignored in their HTML documents. Incidentally, as you might be aware, HTML comments are mostly ignored by email clients and browsers.&nbsp;<\/p>\n\n\n\n<p>However, T-online is one email client that will render all comments effectively. Therefore if your emails are directed to t-online.de domains, you must <a href=\"https:\/\/github.com\/hteumeuleu\/email-bugs\/issues\/43\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">hide comments<\/a> from that client.&nbsp;<\/p>\n\n\n\n<div class=\"dm-code-snippet dark dm-normal-version no-background no-background-mobile\" snippet-height=\"\" style=\"background-color:#abb8c3\"><div class=\"control-language\"><div class=\"dm-buttons\"><div class=\"dm-buttons-left\"><div class=\"dm-button-snippet red-button\"><\/div><div class=\"dm-button-snippet orange-button\"><\/div><div class=\"dm-button-snippet green-button\"><\/div><\/div><div class=\"dm-buttons-right\"><a id=\"dm-copy-raw-code\"><span class=\"dm-copy-text\">Copy Code<\/span><span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span><span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a><\/div><\/div><pre class=\" line-numbers\"><code id=\"dm-code-raw\" class=\" no-wrap language-markup\">&lt;!--[if mso]>\n&lt;table>&lt;tr>&lt;td>\n&lt;p>Content type here \/\/ It will display only in outlook.&lt;\/p>\n&lt;\/td>&lt;\/tr>&lt;\/table>\n&lt;![endif]--><\/code><\/pre><\/div><\/div>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"645\" height=\"137\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-Comments.png\" alt=\"Conditional Comments \" class=\"wp-image-36343\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-Comments.png 645w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-Comments-300x64.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-Comments-624x133.png 624w\" sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/figure><\/div>\n\n\n\n<p>In the above example, only Outlook will be able to process and deploy the table and its contents whilst other email clients won\u2019t be able to read the comments and use the styles.&nbsp;<\/p>\n\n\n\n<p>Let\u2019s have a look at some of the codes you can use as per your bespoke need:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Using MSO conditional comments for incorporating CSS styles in the &lt;head&gt; targeting specifically Outlook.&nbsp;<\/li><\/ul>\n\n\n\n<div class=\"dm-code-snippet dark dm-normal-version no-background no-background-mobile\" snippet-height=\"\" style=\"background-color:#abb8c3\"><div class=\"control-language\"><div class=\"dm-buttons\"><div class=\"dm-buttons-left\"><div class=\"dm-button-snippet red-button\"><\/div><div class=\"dm-button-snippet orange-button\"><\/div><div class=\"dm-button-snippet green-button\"><\/div><\/div><div class=\"dm-buttons-right\"><a id=\"dm-copy-raw-code\"><span class=\"dm-copy-text\">Copy Code<\/span><span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span><span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a><\/div><\/div><pre class=\" line-numbers\"><code id=\"dm-code-raw\" class=\" no-wrap language-markup\">&lt;!--[if mso]>\n&lt;style>\n  .P {\n   font-family: Arial, sans serif;\n   font-size: 20px;\n   color: #000000;\n   }\n&lt;\/style>\n&lt;![endif]--><\/code><\/pre><\/div><\/div>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"471\" height=\"180\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-Comments-1.png\" alt=\"MSO conditional comments\" class=\"wp-image-36344\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-Comments-1.png 471w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-Comments-1-300x115.png 300w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>If you\u2019d like to target clients outside Outlook, here\u2019s what you can do,<\/li><\/ul>\n\n\n\n<div class=\"dm-code-snippet dark dm-normal-version no-background no-background-mobile\" snippet-height=\"\" style=\"background-color:#abb8c3\"><div class=\"control-language\"><div class=\"dm-buttons\"><div class=\"dm-buttons-left\"><div class=\"dm-button-snippet red-button\"><\/div><div class=\"dm-button-snippet orange-button\"><\/div><div class=\"dm-button-snippet green-button\"><\/div><\/div><div class=\"dm-buttons-right\"><a id=\"dm-copy-raw-code\"><span class=\"dm-copy-text\">Copy Code<\/span><span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span><span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a><\/div><\/div><pre class=\" line-numbers\"><code id=\"dm-code-raw\" class=\" no-wrap language-markup\">&lt;!--[if !mso]>&lt;!-->\n&lt;p>This message for who doesn't use Outlook!&lt;\/p> \n&lt;!--&lt;![endif]--><\/code><\/pre><\/div><\/div>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"497\" height=\"81\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/clients_outside_Outlook.png\" alt=\"clients outside Outlook\" class=\"wp-image-36345\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/clients_outside_Outlook.png 497w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/clients_outside_Outlook-300x49.png 300w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/figure><\/div>\n\n\n\n<p>\u201cif !mso\u201d is declaring, \u201cif the client is not Microsoft Outlook\u201d. You\u2019ll also need to append your initial &lt;!&#8211;[if !mso]&gt; tag with &lt;!&#8211;&gt; and preface your closing &lt;![endif]&#8211;&gt; tag with &lt;!&#8211; in order for Outlook to acknowledge this code.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>One can even target specific Outlook versions by specifying the version number after \u201cif mso\u201d. For example,&nbsp;<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table email-profile-table\"><table><tbody><tr><td><strong>Outlook version(s)<\/strong><\/td><td><strong>Code<\/strong><\/td><\/tr><tr><td>All Windows OutlookMost common<\/td><td>&lt;!&#8211;[if mso]&gt; your code &lt;![endif]&#8211;&gt;<\/td><\/tr><tr><td>Outlook 2000<\/td><td>&lt;!&#8211;[if mso 9]&gt; your code &lt;![endif]&#8211;&gt;<\/td><\/tr><tr><td>Outlook 2002<\/td><td>&lt;!&#8211;[if mso 10]&gt; your code &lt;![endif]&#8211;&gt;<\/td><\/tr><tr><td>Outlook 2003<\/td><td>&lt;!&#8211;[if mso 11]&gt; your code &lt;![endif]&#8211;&gt;<\/td><\/tr><tr><td>Outlook 2007<\/td><td>&lt;!&#8211;[if mso 12]&gt; your code &lt;![endif]&#8211;&gt;<\/td><\/tr><tr><td>Outlook 2010<\/td><td>&lt;!&#8211;[if mso 14]&gt; your code &lt;![endif]&#8211;&gt;<\/td><\/tr><tr><td>Outlook 2013<\/td><td>&lt;!&#8211;[if mso 15]&gt; your code &lt;![endif]&#8211;&gt;<\/td><\/tr><tr><td>Outlook 2016<\/td><td>&lt;!&#8211;[if mso 16]&gt; your code &lt;![endif]&#8211;&gt;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Use cases of conditional code in developing emails&nbsp;<\/h2>\n\n\n\n<p>If your latest email campaign is curated to be sent to multiple email clients, you will need to incorporate certain elements of conditional code to ensure that your <a href=\"https:\/\/email.uplers.com\/blog\/email-rendering-issues-in-outlook-and-hacks\/\" target=\"_blank\" rel=\"noreferrer noopener\">emails render <\/a>well across platforms and email clients.&nbsp;<\/p>\n\n\n\n<p>Interestingly, conditional code allows one to create more engaging content for supportive email clients. It allows you to deploy the eyeball-grabbing power of animated gifs, HTML5 videos, and cool web fonts whilst offering backup design and content for clients that are unsupportive of these features in creating <a href=\"https:\/\/email.uplers.com\/email-template-production-services\/\" target=\"_blank\" rel=\"noreferrer noopener\">responsive email templates<\/a>.&nbsp;<\/p>\n\n\n\n<p>Let\u2019s check out some use cases;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Deploying different styles and designs depending on the email client or viewport size<\/h3>\n\n\n\n<p>Emails can render differently when viewed on different devices. For instance, a &lt;h1&gt; heading at 24px on a mobile email client will look completely fine, but when viewed on a desktop, the title may seem small in comparison with the body copy. The @media rule can be used to set styles according to the viewport\u2019s dimensions or other specifications of the subscriber\u2019s device.&nbsp;<\/p>\n\n\n\n<div class=\"dm-code-snippet dark dm-normal-version no-background no-background-mobile\" snippet-height=\"\" style=\"background-color:#abb8c3\"><div class=\"control-language\"><div class=\"dm-buttons\"><div class=\"dm-buttons-left\"><div class=\"dm-button-snippet red-button\"><\/div><div class=\"dm-button-snippet orange-button\"><\/div><div class=\"dm-button-snippet green-button\"><\/div><\/div><div class=\"dm-buttons-right\"><a id=\"dm-copy-raw-code\"><span class=\"dm-copy-text\">Copy Code<\/span><span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span><span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a><\/div><\/div><pre class=\" line-numbers\"><code id=\"dm-code-raw\" class=\" no-wrap language-markup\">&lt;style>\n@media screen and (min-width: 480px) {\n  .em_font20 {\n    font-size: 20px !important;\n  }\n}\n\n&lt;\/style>\n&lt;td class=\"em_font20\" align=\"center\" valign=\"top\" style=\"font-family: Arial, sans-serif; font-size: 24px; line-height: 17px;\ncolor: #000000;\">this is text with size 24, it's appear 20 in below 480 viewport.&lt;\/td><\/code><\/pre><\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"197\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Deploying-different-styles-designs-1024x197.png\" alt=\"Deploying different styles and designs\" class=\"wp-image-36349\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Deploying-different-styles-designs-1024x197.png 1024w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Deploying-different-styles-designs-300x58.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Deploying-different-styles-designs-768x148.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Deploying-different-styles-designs-624x120.png 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Deploying-different-styles-designs.png 1145w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2.  Hide specific email elements<\/h3>\n\n\n\n<p>As we are aware, there are certain HTML and CSS components are not supported by all email clients. In order to prevent an awkward display of such elements one can use conditional CSS to hide them. Here are some ways you can use to hide particular email elements;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Deploy inline CSS:<\/li><\/ul>\n\n\n\n<p>If you wish to hide an element, you must set the display property to none. For instance,<\/p>\n\n\n\n<p>&lt;div style=&#8221;display:none;&#8221;&gt;Hidden content&lt;\/div&gt;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Make use of the mso-hide property:<\/li><\/ul>\n\n\n\n<p>In particular versions of Microsoft Outlook, you can use mso-hidden attributes in a style tag to hide an element. For example;<\/p>\n\n\n\n<div class=\"dm-code-snippet dark dm-normal-version no-background no-background-mobile\" snippet-height=\"\" style=\"background-color:#abb8c3\"><div class=\"control-language\"><div class=\"dm-buttons\"><div class=\"dm-buttons-left\"><div class=\"dm-button-snippet red-button\"><\/div><div class=\"dm-button-snippet orange-button\"><\/div><div class=\"dm-button-snippet green-button\"><\/div><\/div><div class=\"dm-buttons-right\"><a id=\"dm-copy-raw-code\"><span class=\"dm-copy-text\">Copy Code<\/span><span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span><span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a><\/div><\/div><pre class=\" line-numbers\"><code id=\"dm-code-raw\" class=\" no-wrap language-markup\">&lt;style>\n.mso-hide {display:none;}\n&lt;\/style>\n&lt;div class=\"mso-hide\">Hidden content&lt;\/div><\/code><\/pre><\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"424\" height=\"116\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/mso-hide-property.png\" alt=\"mso-hidden attributes\" class=\"wp-image-36350\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/mso-hide-property.png 424w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/mso-hide-property-300x82.png 300w\" sizes=\"auto, (max-width: 424px) 100vw, 424px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Employ display:none in a media query in order to hide an element on specific devices by setting the display property to none. Here we hide the image in 600px and less viewport.<\/li><\/ul>\n\n\n\n<div class=\"dm-code-snippet dark dm-normal-version no-background no-background-mobile\" snippet-height=\"\" style=\"background-color:#abb8c3\"><div class=\"control-language\"><div class=\"dm-buttons\"><div class=\"dm-buttons-left\"><div class=\"dm-button-snippet red-button\"><\/div><div class=\"dm-button-snippet orange-button\"><\/div><div class=\"dm-button-snippet green-button\"><\/div><\/div><div class=\"dm-buttons-right\"><a id=\"dm-copy-raw-code\"><span class=\"dm-copy-text\">Copy Code<\/span><span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span><span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a><\/div><\/div><pre class=\" line-numbers\"><code id=\"dm-code-raw\" class=\" no-wrap language-markup\">&lt;style>\n@media only screen and (max-width: 600px) { .em_hide {\n} \n&lt;\/style> |\n&lt;tr>\n}\ndisplay: none !important;\n&lt;td align=\"center\" valign=\"top\" class=\"em_hide\">&lt;img src=\"images\/logo.png\" width=\"165\" alt=\"logo\" border=\"0\" style=\"display: block; max-width: 165px; color: #000000; font-size: 15px; font-family: Arial, sans-serif;\"\/>&lt;\/td> &lt;\/tr><\/code><\/pre><\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1060\" height=\"250\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/code-1.png\" alt=\"code\" class=\"wp-image-36352\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/code-1.png 1060w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/code-1-300x71.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/code-1-1024x242.png 1024w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/code-1-768x181.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/code-1-624x147.png 624w\" sizes=\"auto, (max-width: 1060px) 100vw, 1060px\" \/><\/figure><\/div>\n\n\n\n<p>Make use of MSO conditional comment to hide an element on the basis of a certain condition. In the following instance, you can choose to hide an element if the Outlook version is older than 2010.&nbsp;<\/p>\n\n\n\n<div class=\"dm-code-snippet dark dm-normal-version no-background no-background-mobile\" snippet-height=\"\" style=\"background-color:#abb8c3\"><div class=\"control-language\"><div class=\"dm-buttons\"><div class=\"dm-buttons-left\"><div class=\"dm-button-snippet red-button\"><\/div><div class=\"dm-button-snippet orange-button\"><\/div><div class=\"dm-button-snippet green-button\"><\/div><\/div><div class=\"dm-buttons-right\"><a id=\"dm-copy-raw-code\"><span class=\"dm-copy-text\">Copy Code<\/span><span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span><span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a><\/div><\/div><pre class=\" line-numbers\"><code id=\"dm-code-raw\" class=\" no-wrap language-markup\">&lt;!--[if gt mso 14]>\n&lt;img src=\"image\/logo\" height=\"20\" width=\"120\"> \n&lt;![endif]-->|<\/code><\/pre><\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"443\" height=\"77\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Hide_element-1.png\" alt=\" hide an element\" class=\"wp-image-36353\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Hide_element-1.png 443w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Hide_element-1-300x52.png 300w\" sizes=\"auto, (max-width: 443px) 100vw, 443px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3. Employ Ghost Tables:<\/h3>\n\n\n\n<p>Ghost tables come in handy when you don\u2019t wish Outlook to break things simply because it doesn\u2019t recognize the max-width, min-width, and inline-block properties. There are a couple of ways to create ghost tables, let\u2019s check them out;&nbsp;<\/p>\n\n\n\n<div class=\"dm-code-snippet dark dm-normal-version no-background no-background-mobile\" snippet-height=\"\" style=\"background-color:#abb8c3\"><div class=\"control-language\"><div class=\"dm-buttons\"><div class=\"dm-buttons-left\"><div class=\"dm-button-snippet red-button\"><\/div><div class=\"dm-button-snippet orange-button\"><\/div><div class=\"dm-button-snippet green-button\"><\/div><\/div><div class=\"dm-buttons-right\"><a id=\"dm-copy-raw-code\"><span class=\"dm-copy-text\">Copy Code<\/span><span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span><span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a><\/div><\/div><pre class=\" line-numbers\"><code id=\"dm-code-raw\" class=\" no-wrap language-markup\">&lt;!--[if mso]>\n&lt;table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\"> &lt;tr>\n&lt;td width=\"600\" style=\"width: 600px;\">\n&lt;![endif]-->\n&lt;div style=\"display:inline-block; width:100%; min-width: 320px; max-width:480px;\"> \n  &lt;p>Here is the ghost table.&lt;\/p>\n&lt;\/div>\n&lt;!--[if mso]>\n&lt;\/td>\n&lt;\/tr>\n&lt;\/table>\n&lt;![endif]-->|<\/code><\/pre><\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"778\" height=\"262\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Ghost_Tables.png\" alt=\" Employ Ghost Tables\" class=\"wp-image-36355\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Ghost_Tables.png 778w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Ghost_Tables-300x101.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Ghost_Tables-768x259.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Ghost_Tables-624x210.png 624w\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" \/><\/figure><\/div>\n\n\n\n<p>Or,<\/p>\n\n\n\n<div class=\"dm-code-snippet dark dm-normal-version no-background no-background-mobile\" snippet-height=\"\" style=\"background-color:#abb8c3\"><div class=\"control-language\"><div class=\"dm-buttons\"><div class=\"dm-buttons-left\"><div class=\"dm-button-snippet red-button\"><\/div><div class=\"dm-button-snippet orange-button\"><\/div><div class=\"dm-button-snippet green-button\"><\/div><\/div><div class=\"dm-buttons-right\"><a id=\"dm-copy-raw-code\"><span class=\"dm-copy-text\">Copy Code<\/span><span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span><span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a><\/div><\/div><pre class=\" line-numbers\"><code id=\"dm-code-raw\" class=\" no-wrap language-markup\">\ufeff&lt;!--[if true]>\n&lt;table &lt;tr>\nrole=\"presentation\" width=\"100%\" style=\"all:unset;opacity:0;\">\n&lt;![endif]-->\n&lt;!--[if false]>&lt;\/td>&lt;\/tr>&lt;\/table>&lt;![endif]-->\n&lt;div style=\"display:table;width:100%;\">\n&lt;!--[if true]>\n&lt;td width=\"100%\">\n&lt;![endif]-->\n&lt;!--[if !true]>&lt;!-->\n&lt;div style=\"display:table-cell;width:100%\"> \n&lt;!--&lt;![endif]-->\nGhost table\n&lt;!--[if !true]>&lt;!-->\n&lt;\/div>\n&lt;!--&lt;![endif]-->\n&lt;!--[if true]>\n&lt;\/td>\n&lt;![endif]-->\n&lt;\/div>\n&lt;!--[if true]>\n&lt;\/tr> \n&lt;\/table>\n&lt;![endif]--><\/code><\/pre><\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"751\" height=\"471\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/employ_Ghost_tables.png\" alt=\" Ghost Tables\" class=\"wp-image-36354\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/employ_Ghost_tables.png 751w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/employ_Ghost_tables-300x188.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/employ_Ghost_tables-223x140.png 223w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/employ_Ghost_tables-624x391.png 624w\" sizes=\"auto, (max-width: 751px) 100vw, 751px\" \/><\/figure><\/div>\n\n\n<div class=\"banner_wrapper\" style=\"\"><div class=\"banner  banner-31303 bottom vert custom-banners-theme-default_style\" style=\"\"><a class=\"custom_banners_big_link\"  target=\"_blank\"  href=\"https:\/\/email.uplers.com\/custom-email-templates-design-coding\/\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"200\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2022\/04\/4.jpg\" class=\"attachment-full size-full\" alt=\"create custom emails\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2022\/04\/4.jpg 800w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2022\/04\/4-300x75.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2022\/04\/4-768x192.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2022\/04\/4-624x156.jpg 624w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4. Bulletproof backgrounds and bullets:&nbsp;<\/h3>\n\n\n\n<p>Bulletproof email design elements are HTML\/CSS elements that use traditional background images combined with Vector Markup Language (VML) to display properties irrespective of your subscriber\u2019s email client. The following is an example of a bulletproof background.<\/p>\n\n\n\n<div class=\"dm-code-snippet dark dm-normal-version no-background no-background-mobile\" snippet-height=\"\" style=\"background-color:#abb8c3\"><div class=\"control-language\"><div class=\"dm-buttons\"><div class=\"dm-buttons-left\"><div class=\"dm-button-snippet red-button\"><\/div><div class=\"dm-button-snippet orange-button\"><\/div><div class=\"dm-button-snippet green-button\"><\/div><\/div><div class=\"dm-buttons-right\"><a id=\"dm-copy-raw-code\"><span class=\"dm-copy-text\">Copy Code<\/span><span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span><span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a><\/div><\/div><pre class=\" line-numbers\"><code id=\"dm-code-raw\" class=\" no-wrap language-markup\">\ufeff&lt;tr>\n&lt;td align=\"center\" valign=\"top\" class=\"em_hauto\" background=\"images\/bg1.jpg\" height=\"731\" style=\"background-image: url(images\/bg1.jpg); background-position: top center; background-repeat: no-repeat; background-size: cover; height: 731px;\">\n&lt;!--[if gte mso 9]>\n&lt;v:image xmlns:v=\"urn:schemas-microsoft-com:vml\" fill=\"true\" stroke=\"false\" style=\" border: 0;display: inline-block; width: 640px; height: 731px;\" src=\"images\/bg1.jpg\" \/>\n&lt;v:rect xmlns: v=\"urn:schemas-microsoft-com: vml\" fill=\"true\" stroke=\"false\" style=\"border: 0;display: inline-block;position: absolute; width: 640px; height: 731px;\">\n&lt;v: fill opacity=\"0%\" color=\"#432B77\" \/>\n&lt;v:textbox inset=\"0,0,0,0\">\n&lt;![endif]-->\n&lt;table align=\"center\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> &lt;tbody>&lt;tr>&lt;td align=\"center\" valign=\"top\">&nbsp;&lt;\/td>&lt;\/tr> &lt;\/tbody>\n&lt;\/table>\n&lt;!--[if gte mso 9]>\n&lt;\/v:textbox>\n&lt;\/v:fill>\n&lt;\/v:rect>\n&lt;\/v:image>\n&lt;![endif]-->\n&lt;\/td>\n&lt;\/tr><\/code><\/pre><\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1148\" height=\"453\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Bulletproof-backgrounds-bullets.png\" alt=\"Bulletproof backgrounds \" class=\"wp-image-36356\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Bulletproof-backgrounds-bullets.png 1148w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Bulletproof-backgrounds-bullets-300x118.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Bulletproof-backgrounds-bullets-1024x404.png 1024w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Bulletproof-backgrounds-bullets-768x303.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Bulletproof-backgrounds-bullets-624x246.png 624w\" sizes=\"auto, (max-width: 1148px) 100vw, 1148px\" \/><\/figure><\/div>\n\n\n\n<p>Across email clients, the shape of a button may be affected, however, their functioning is unaffected. Here is an instance of a bulletproof button,<\/p>\n\n\n\n<div class=\"dm-code-snippet dark dm-normal-version no-background no-background-mobile\" snippet-height=\"\" style=\"background-color:#abb8c3\"><div class=\"control-language\"><div class=\"dm-buttons\"><div class=\"dm-buttons-left\"><div class=\"dm-button-snippet red-button\"><\/div><div class=\"dm-button-snippet orange-button\"><\/div><div class=\"dm-button-snippet green-button\"><\/div><\/div><div class=\"dm-buttons-right\"><a id=\"dm-copy-raw-code\"><span class=\"dm-copy-text\">Copy Code<\/span><span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span><span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a><\/div><\/div><pre class=\" line-numbers\"><code id=\"dm-code-raw\" class=\" no-wrap language-markup\">\ufeff&lt;div>&lt;!--[if mso]>\n&lt;v: roundrect xmlns:v=\"urn:schemas-microsoft-com: vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" href=\"http:\/\/\" style=\"height:40px;v-text-anchor:middle;width:200px;\" arcsize=\"60%\" strokecolor=\"#1e3650\" fill=\"t\">\n&lt;v: fill type=\"tile\" src=\"https:\/\/i.imgur.com\/0xPEf.gif\" color=\"#556270\" \/>\n&lt;w: anchor lock\/>\n&lt;center style=\"color:#ffffff;font-family: sans-serif; font-size: 13px; font-weight:bold;\">button!&lt;\/center> &lt;\/v: roundrect>\n&lt;![endif]-->&lt;a href=\"#\"\nstyle=\"background-color:#556270;background-image:url(https:\/\/i.imgur.com\/0xPEf.gif);border:1px solid #1e3650;border- radius:24px;color:#ffffff;display:inline-block; font-family: sans-serif; font-size: 13px; font-weight:bold;line-height:40px;text- align:center;text-decoration:none;width:200px; -webkit-text-size-adjust:none; mso-hide:all;\">button!&lt;\/a>&lt;\/div><\/code><\/pre><\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1132\" height=\"228\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/bulletproof-button.png\" alt=\"bulletproof button\" class=\"wp-image-36357\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/bulletproof-button.png 1132w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/bulletproof-button-300x60.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/bulletproof-button-1024x206.png 1024w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/bulletproof-button-768x155.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/bulletproof-button-624x126.png 624w\" sizes=\"auto, (max-width: 1132px) 100vw, 1132px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">5. Replace Gifs with static images:<\/h3>\n\n\n\n<p>Outlook for Windows still does not support gifs. Across Outlook versions, the handing of gifs varies. To convey your visual message in an effective manner one can use conditional comments to display a static image.<\/p>\n\n\n\n<div class=\"dm-code-snippet dark dm-normal-version no-background no-background-mobile\" snippet-height=\"\" style=\"background-color:#abb8c3\"><div class=\"control-language\"><div class=\"dm-buttons\"><div class=\"dm-buttons-left\"><div class=\"dm-button-snippet red-button\"><\/div><div class=\"dm-button-snippet orange-button\"><\/div><div class=\"dm-button-snippet green-button\"><\/div><\/div><div class=\"dm-buttons-right\"><a id=\"dm-copy-raw-code\"><span class=\"dm-copy-text\">Copy Code<\/span><span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span><span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a><\/div><\/div><pre class=\" line-numbers\"><code id=\"dm-code-raw\" class=\" no-wrap language-markup\">&lt;!--[if !mso]>&lt;!-->\n&lt;tr>\n&lt;td align=\"center\" valign=\"top\">&lt;a href=\"#\" target=\"_blank\" style=\"text-decoration:none;\">&lt;img src=\"https:\/\/i.ibb.co\/Y366BHT\/img-2.jpg\" alt=\"\" width=\"600\" class=\"em_full_img\" style=\"display:block; font-family: Arial, sans-serif; font-size:18px; line-height:50px; color:#000000; max-width: 600px;\" border=\"0\" \/>&lt;\/a>&lt;\/td> &lt;\/tr>\n&lt;!--&lt;![endif]-->\n&lt;tr>\n&lt;!--[if gte mso 9]>\n&lt;td align=\"center\" valign=\"top\"> &lt;a href=\"#\" target=\"_blank\" style=\"text-decoration:none;\">&lt;img src=\"https:\/\/i.ibb.co\/Y366BHT\/img-2.jpg\" alt=\"\" width=\"600\" class=\"em_full_img\" style=\"display:block; font-family:Arial, sans-serif; font-size: 18px; line-height:50px; color:#000000; max-width: 600px;\" border=\"0\" \/>&lt;\/a>&lt;\/td>\n&lt;\/tr> &lt;![endif]--><\/code><\/pre><\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"264\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Replace_Gifs_with-static-1024x264.png\" alt=\" conditional comment- display a static image\" class=\"wp-image-36358\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Replace_Gifs_with-static-1024x264.png 1024w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Replace_Gifs_with-static-300x77.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Replace_Gifs_with-static-768x198.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Replace_Gifs_with-static-624x161.png 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Replace_Gifs_with-static.png 1131w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">6. Hide &amp; Show Method:<\/h3>\n\n\n\n<p>If you want to hide and show elements in mobile and desktop you can use this method.&nbsp;<\/p>\n\n\n\n<div class=\"dm-code-snippet dark dm-normal-version no-background no-background-mobile\" snippet-height=\"\" style=\"background-color:#abb8c3\"><div class=\"control-language\"><div class=\"dm-buttons\"><div class=\"dm-buttons-left\"><div class=\"dm-button-snippet red-button\"><\/div><div class=\"dm-button-snippet orange-button\"><\/div><div class=\"dm-button-snippet green-button\"><\/div><\/div><div class=\"dm-buttons-right\"><a id=\"dm-copy-raw-code\"><span class=\"dm-copy-text\">Copy Code<\/span><span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span><span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a><\/div><\/div><pre class=\" line-numbers\"><code id=\"dm-code-raw\" class=\" no-wrap language-markup\">&lt;style>\n  .em_hide_desktop {\n    display: table !important;\n    overflow: visible !important;\n    float: none !important;\n    width: 100% !important;\n   height: auto !important;\n }\n  .em_hide { display: none !important; }\n&lt;\/style>\n&lt;tr>\n  &lt;td class=\"em_hide\" valign=\"top\" align=\"center\">\n    &lt;table>&lt;tr>&lt;td>content&lt;\/td>&lt;\/tr>&lt;\/table>\n  &lt;\/td>\n&lt;\/tr>\n&lt;!--Mobile_container Start -->\n&lt;!--[if !mso 9]>&lt;!-->\n&lt;tr>\n  &lt;td height=\"0\" valign=\"top\" align=\"center\">\n    &lt;div class=\"em_hide_desktop\" style=\"display:none;width:0;overflow:hidden; max-height:0px !important;\"> \n       &lt;table>&lt;tr>&lt;td>content&lt;\/td>&lt;\/tr>&lt;\/table>\n    &lt;\/div>\n  &lt;\/td>\n&lt;\/tr>\n&lt;!--&lt;![endif]-->\n&lt;!--Mobile Container End --><\/code><\/pre><\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1013\" height=\"544\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Hide-Show-Method.png\" alt=\"Hide &amp; Show Method\" class=\"wp-image-36359\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Hide-Show-Method.png 1013w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Hide-Show-Method-300x161.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Hide-Show-Method-768x412.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Hide-Show-Method-261x140.png 261w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Hide-Show-Method-624x335.png 624w\" sizes=\"auto, (max-width: 1013px) 100vw, 1013px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">7. Stack Tables:<\/h3>\n\n\n\n<p>One can stack tables in Outlook mobile using mso conditions. For this, one has to code the main table and, after that code two tables in the main table. You may then code MSO code for the middle of both tables.<\/p>\n\n\n\n<p>For instance,<\/p>\n\n\n\n<div class=\"dm-code-snippet dark dm-normal-version no-background no-background-mobile\" snippet-height=\"\" style=\"background-color:#abb8c3\"><div class=\"control-language\"><div class=\"dm-buttons\"><div class=\"dm-buttons-left\"><div class=\"dm-button-snippet red-button\"><\/div><div class=\"dm-button-snippet orange-button\"><\/div><div class=\"dm-button-snippet green-button\"><\/div><\/div><div class=\"dm-buttons-right\"><a id=\"dm-copy-raw-code\"><span class=\"dm-copy-text\">Copy Code<\/span><span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span><span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a><\/div><\/div><pre class=\" line-numbers\"><code id=\"dm-code-raw\" class=\" no-wrap language-markup\">\ufeff&lt;tr>\n&lt;td align=\"center\" valign=\"top\" style=\"padding-top: 29px; padding-bottom: 28px;\" class=\"em_aside151\"> &lt;table align=\"center\" dir=\"rtl\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n&lt;tbody>\n&lt;tr>\n&lt;td align=\"center\" valign=\"top\">\n&lt;table width=\"343\" dir=\"ltr\" class=\"em_wrapper\" style=\"width: 343px;\" align=\"right\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n&lt;tbody>\n&lt;tr> &lt;td align=\"center\" va...\n&lt;\/tbody>\n&lt;\/table>\n&lt;!--[if mso]>&lt;\/td>&lt;td valign=\"top\">&lt;![endif]-->\n&lt;table width=\"257\" dir=\"ltr\" class=\"em_wrapper\" style=\"width: 257px;\" align=\"left\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n&lt;tbody>\n&lt;tr> &lt;td align=\"left\" vali...\n&lt;\/tbody>\n&lt;\/table>\n&lt;\/td>\n&lt;\/tr>\n&lt;\/tbody>\n&lt;\/table>\n&lt;\/td>\n&lt;\/tr><\/code><\/pre><\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"515\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Stack_Tables.png\" alt=\"Stack Tables\" class=\"wp-image-36360\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Stack_Tables.png 980w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Stack_Tables-300x158.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Stack_Tables-768x404.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Stack_Tables-266x140.png 266w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Stack_Tables-624x328.png 624w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>In conclusion, one can say that one can deploy different techniques that can be used to achieve consistency across clients, servers, and devices. Are you looking for the perfectly coded, universally rendering email campaigns? Email Uplers is just a couple of clicks away!&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Developers this is your chance to render those responsive, uniformly expressing emails across platforms using conditional CSS. Keep reading!<\/p>\n","protected":false},"author":74,"featured_media":36361,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[382,1266],"tags":[],"class_list":["post-36337","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-email-coding","category-technical"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Conditional CSS for Email - Guide to Crafting Responsive Emails<\/title>\n<meta name=\"description\" content=\"Looking for perfectly coded, universally rendering email campaigns? Check out this developer\u2019s guide to crafting responsive HTML email templates. Read more\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Conditional CSS for Email - Guide to Crafting Responsive Emails\" \/>\n<meta property=\"og:description\" content=\"Looking for perfectly coded, universally rendering email campaigns? Check out this developer\u2019s guide to crafting responsive HTML email templates. Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/\" \/>\n<meta property=\"og:site_name\" content=\"Email Uplers\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/email.uplers\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-25T11:25:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-23T05:19:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-CSS-in-email-540x282.png\" \/>\n\t<meta property=\"og:image:width\" content=\"540\" \/>\n\t<meta property=\"og:image:height\" content=\"282\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Naina Sandhir\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@email_uplers\" \/>\n<meta name=\"twitter:site\" content=\"@email_uplers\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Naina Sandhir\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/\",\"url\":\"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/\",\"name\":\"Conditional CSS for Email - Guide to Crafting Responsive Emails\",\"isPartOf\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-CSS-in-email.png\",\"author\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/469b2ad5aac604c171ae23802ec7e5b5\"},\"description\":\"Looking for perfectly coded, universally rendering email campaigns? Check out this developer\u2019s guide to crafting responsive HTML email templates. Read more\",\"breadcrumb\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/#primaryimage\",\"url\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-CSS-in-email.png\",\"contentUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-CSS-in-email.png\",\"width\":1170,\"height\":470,\"caption\":\"Conditional CSS for Email\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/email.uplers.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Conditional CSS for Email ~ The Developer\u2019s Guide To Crafting Responsive Emails\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#website\",\"url\":\"https:\/\/email.uplers.com\/blog\/\",\"name\":\"Email Uplers\",\"description\":\"Email Marketing Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/email.uplers.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/469b2ad5aac604c171ae23802ec7e5b5\",\"name\":\"Naina Sandhir\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/04\/Naina-96x96.png\",\"contentUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/04\/Naina-96x96.png\",\"caption\":\"Naina Sandhir\"},\"description\":\"A content writer with Email Uplers, Naina\u2019s pen offers value to the readers through an in-depth and critical dissection of the topic in question. A forester by profession and wordsmith by choice, when not hiking across the Himalayas, she can be found buried in a book with spectacles dangling off her nose!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/themillennialrumi\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Conditional CSS for Email - Guide to Crafting Responsive Emails","description":"Looking for perfectly coded, universally rendering email campaigns? Check out this developer\u2019s guide to crafting responsive HTML email templates. Read more","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/","og_locale":"en_US","og_type":"article","og_title":"Conditional CSS for Email - Guide to Crafting Responsive Emails","og_description":"Looking for perfectly coded, universally rendering email campaigns? Check out this developer\u2019s guide to crafting responsive HTML email templates. Read more","og_url":"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/","og_site_name":"Email Uplers","article_publisher":"https:\/\/www.facebook.com\/email.uplers\/","article_published_time":"2023-05-25T11:25:52+00:00","article_modified_time":"2024-05-23T05:19:24+00:00","og_image":[{"width":540,"height":282,"url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-CSS-in-email-540x282.png","type":"image\/png"}],"author":"Naina Sandhir","twitter_card":"summary_large_image","twitter_creator":"@email_uplers","twitter_site":"@email_uplers","twitter_misc":{"Written by":"Naina Sandhir","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/","url":"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/","name":"Conditional CSS for Email - Guide to Crafting Responsive Emails","isPartOf":{"@id":"https:\/\/email.uplers.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/#primaryimage"},"image":{"@id":"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/#primaryimage"},"thumbnailUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-CSS-in-email.png","author":{"@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/469b2ad5aac604c171ae23802ec7e5b5"},"description":"Looking for perfectly coded, universally rendering email campaigns? Check out this developer\u2019s guide to crafting responsive HTML email templates. Read more","breadcrumb":{"@id":"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/#primaryimage","url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-CSS-in-email.png","contentUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/05\/Conditional-CSS-in-email.png","width":1170,"height":470,"caption":"Conditional CSS for Email"},{"@type":"BreadcrumbList","@id":"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/email.uplers.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Conditional CSS for Email ~ The Developer\u2019s Guide To Crafting Responsive Emails"}]},{"@type":"WebSite","@id":"https:\/\/email.uplers.com\/blog\/#website","url":"https:\/\/email.uplers.com\/blog\/","name":"Email Uplers","description":"Email Marketing Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/email.uplers.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/469b2ad5aac604c171ae23802ec7e5b5","name":"Naina Sandhir","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/04\/Naina-96x96.png","contentUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/04\/Naina-96x96.png","caption":"Naina Sandhir"},"description":"A content writer with Email Uplers, Naina\u2019s pen offers value to the readers through an in-depth and critical dissection of the topic in question. A forester by profession and wordsmith by choice, when not hiking across the Himalayas, she can be found buried in a book with spectacles dangling off her nose!","sameAs":["https:\/\/www.linkedin.com\/in\/themillennialrumi\/"]}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/36337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/users\/74"}],"replies":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/comments?post=36337"}],"version-history":[{"count":25,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/36337\/revisions"}],"predecessor-version":[{"id":39700,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/36337\/revisions\/39700"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/media\/36361"}],"wp:attachment":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/media?parent=36337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/categories?post=36337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/tags?post=36337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}