{"id":3836,"date":"2020-03-30T00:00:00","date_gmt":"2020-03-30T00:00:00","guid":{"rendered":"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide\/"},"modified":"2023-03-13T12:56:49","modified_gmt":"2023-03-13T16:56:49","slug":"interactive-hotspots-in-email-a-step-by-step-guide","status":"publish","type":"post","link":"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide","title":{"rendered":"Interactive Hotspots in Email: A Step-by-Step Guide"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Interactivity continues to be one of the hottest trends in email design\u2014and interactive hotspots are one of the most popular interactive elements in a marketer&#8217;s toolkit. Hotspots let your subscribers uncover additional information when they hover or click on an item in your email\u2014and allow marketers to provide an additional layer of detail to their emails without making your email design feel too crowded.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In the February edition of our monthly newsletter, we used the power of interactive hotspots to show off some exciting updates we\u2019ve made to the Litmus platform:<\/span><\/p>\n<figure id=\"post-25370 media-25370\" class=\"alignnone\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.litmus.com\/wp-content\/uploads\/2020\/04\/hotspots_full.gif\" alt=\"\" \/><\/figure>\n<p><span style=\"font-weight: 400;\">After we sent out the campaign, we received many questions from fellow email geeks about how exactly we created our hotspots\u2014and how we made them work in Gmail. That\u2019s why we\u2019re here to share our step-by-step guide.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Read up on the details of how we designed and coded our hotspots below or check out the <\/span><a rel=\"noopener\" href=\"https:\/\/litmus.com\/builder\/211be43\"><span style=\"font-weight: 400;\">hotspot code on Litmus Builder<\/span><\/a><span style=\"font-weight: 400;\">\u2014that\u2019s where you find the exact placement of all the code elements we describe below.<\/span><\/p>\n<h2>1. Before you get started: Important considerations<\/h2>\n<h3>Hover or click?<\/h3>\n<p><span style=\"font-weight: 400;\">There are many different ways to code interactive hotspots in email. If I wanted hotspots that <\/span><em><span style=\"font-weight: 400;\">only<\/span><\/em><span style=\"font-weight: 400;\"> activate on click or tap, I would consider using the <\/span><a rel=\"noopener\" target=\"_blank\" href=\"https:\/\/css-tricks.com\/the-checkbox-hack\/\"><span style=\"font-weight: 400;\">Checkbox Hack<\/span><\/a><span style=\"font-weight: 400;\">, for example. However, we went with hotspots that activate on <\/span><em><span style=\"font-weight: 400;\">hover<\/span><\/em><span style=\"font-weight: 400;\"> for a few reasons.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">First, <\/span><strong>:hover<\/strong><span style=\"font-weight: 400;\"> is better supported in email clients than <\/span><strong>:checked<\/strong><span style=\"font-weight: 400;\">\u2014especially in one of our largest email clients, Gmail. Secondly, interactivity is still not very common in email so I wanted to make it as easy as possible for users to discover that they <\/span><em><span style=\"font-weight: 400;\">can<\/span><\/em><span style=\"font-weight: 400;\"> interact with it. After all, hovering over a hotspot and seeing a tooltip appear immediately takes less effort than hovering and <\/span><em><span style=\"font-weight: 400;\">then<\/span><\/em><span style=\"font-weight: 400;\"> clicking. Because I wanted to find a way that balanced functionality and support for the widest audience possible, hovered hotspots were the way to go.<\/span><\/p>\n<h3>Email client support: Are hotspots effective for <em>your<\/em> audience?<\/h3>\n<p><span style=\"font-weight: 400;\">Interactive hotspots are a great way to make your email more engaging and more effective, but\u2014like many interactive techniques\u2014they aren\u2019t supported in all email clients.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Before incorporating this technique into your repertoire, you definitely want to consider which email clients matter most to you and your stakeholders. According to <\/span><a rel=\"noopener\" target=\"_blank\" href=\"https:\/\/emailclientmarketshare.com\/\"><span style=\"font-weight: 400;\">Email Client Market Share<\/span><\/a><span style=\"font-weight: 400;\">, 79% of <\/span><em><span style=\"font-weight: 400;\">all<\/span><\/em><span style=\"font-weight: 400;\"> email clients support the fully interactive versions of this hotspot technique. But your audience\u2019s email client usage might look completely different from the global average. Take a close look at your own business\u2019 market share for the most accurate data.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">At Litmus, we used our <a rel=\"noopener\" href=\"https:\/\/litmus.com\/email-analytics\">Email Analytics<\/a> tracking to determine that some of our top clients are Gmail (36.8%), Apple Mail (20.0%), and iPhone (13.2%) which make up a majority (70%) of our audience. Email clients that will show the fallback version make up only 30% of our audience.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">With this data, it made sense for us to focus on creating a great interactive experience for our users, but this may not be the case if your audience skews more heavily towards Outlook for Windows. However, you should be constantly tracking and testing to make sure you have the most accurate and up-to-date analytics data! Email client market shares change over time as certain clients and devices become more popular (many companies have switched from Outlook to GSuite, for example), so it\u2019s best not to rely on historical knowledge as to how things have always been done.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Check what level of functionality your top email clients support below.<\/span><\/p>\n<p><strong>Fully Interactive &#8211; Desktop<\/strong><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">This is where hotspots are fully functional at desktop viewports.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Apple Mail<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">iPad<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Gmail<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Outlook (MacOS)<\/span><\/li>\n<\/ul>\n<p><strong>Fully Interactive &#8211; Mobile<\/strong><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">This is where hotspots are fully functional at mobile viewports.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">iPhone Mail<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Gmail App (Android)*<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Samsung Mail<\/span><\/li>\n<\/ul>\n<p><strong>Fallback &#8211; Animated PNG<\/strong><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">These clients (except for the ones with asterisks **) support animated PNGs <\/span><i><span style=\"font-weight: 400;\">and<\/span><\/i><span style=\"font-weight: 400;\"> Dark Mode targeting, so we used a custom fallback <\/span><a rel=\"noopener\" href=\"https:\/\/litmus.com\/blog\/animated-pngs-in-email-an-alternative-to-gifs\"><span style=\"font-weight: 400;\">transparent animated PNG<\/span><\/a><span style=\"font-weight: 400;\"> that would animate on any background.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Outlook.com<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Outlook App<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">AOL<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">AOL App<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Yahoo<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Yahoo App<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Outlook (Windows)**<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Windows Mail**<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">* Gmail App (iOS) shows hotspots but they aren\u2019t tappable.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">** These clients only show the first frame of animated PNGs, and do not support Dark Mode targeting. Even if we were to use an animated GIF, the flat colored background would mismatch with the Dark Mode view. On top of that, you can\u2019t swap Light\/Dark mode GIFs out since these clients also don\u2019t support Dark Mode targeting. For these clients, we made sure that the first frame of the animated PNG still looked good.<\/span><\/p>\n<h2>2. Design planning: Mapping out the subscriber experience for all use cases<\/h2>\n<p><span style=\"font-weight: 400;\">Did you determine that you have a solid business case for using interactive hotspots, <\/span><em><span style=\"font-weight: 400;\">and<\/span><\/em><span style=\"font-weight: 400;\"> that a large portion of your audience will be able to enjoy it? Great! Now we can start designing out the potential views to build for.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Why do you need different views, you ask? The hotspot element won\u2019t look the same on mobile and desktop. Plus, you\u2019ll have to design a fallback for everyone who won\u2019t be able to see the interactive version of the element. For us, we identified four key use cases that we tackled at the design stage:<\/span><\/p>\n<p><strong>Interactive: Desktop Width<\/strong><\/p>\n<figure id=\"post-25370 media-25370\" class=\"alignnone\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.litmus.com\/wp-content\/uploads\/2020\/04\/hotspots_desktop_light.gif\" alt=\"\" \/><\/figure>\n<p><span style=\"font-weight: 400;\">When laying out the design for this, try not to overlap the tooltips with the hotspots too much.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We went with <\/span><a rel=\"noopener\" href=\"https:\/\/litmus.com\/blog\/animated-pngs-in-email-an-alternative-to-gifs\"><span style=\"font-weight: 400;\">Animated PNGs<\/span><\/a><span style=\"font-weight: 400;\"> for the hotspot images because we needed to achieve a smooth alpha-channel transparency that only PNGs can provide so that they could overlay the <a rel=\"noopener\" href=\"https:\/\/www.litmus.com\/blog\/the-ultimate-guide-to-background-images-in-email\/\">background image<\/a>, and the slight animation\u2014you see the hotspots pulsing\u2014brings attention to the fact that you can interact with them.<\/span><\/p>\n<p><strong>Fallback: Desktop Width with fluid resizing to Mobile Width<\/strong><\/p>\n<figure id=\"post-25370 media-25370\" class=\"alignnone\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.litmus.com\/wp-content\/uploads\/2020\/04\/fallback_mobile_light.gif\" alt=\"\" \/><\/figure>\n<p><span style=\"font-weight: 400;\">The fallback version also uses an Animated PNG version of the entire hero section to emulate the effect of the hotspots being triggered.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">At Litmus, we already use a <\/span><a rel=\"noopener\" href=\"https:\/\/litmus.com\/blog\/understanding-responsive-and-hybrid-email-design\"><span style=\"font-weight: 400;\">hybrid fluid method for mobile resizing<\/span><\/a><span style=\"font-weight: 400;\">, so we can expect that all these fallback images will resize smoothly down to any screen width without requiring a specific mobile responsive version.<\/span><\/p>\n<p><strong>Interactive: Mobile Width<\/strong><\/p>\n<figure id=\"post-25370 media-25370\" class=\"alignnone\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.litmus.com\/wp-content\/uploads\/2020\/04\/hotspots_mobile_light.gif\" alt=\"\" \/><\/figure>\n<p><span style=\"font-weight: 400;\">Because we want the tooltips to still be legible on smaller screens, we had to reconfigure the design so that all the tooltips show up in one central location whenever a hotspot was hovered instead of being attached to each hotspot individually.<\/span><\/p>\n<p><strong>Dark Mode<\/strong><\/p>\n<figure id=\"post-25370 media-25370\" class=\"alignnone\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.litmus.com\/wp-content\/uploads\/2020\/04\/hotspots_desktop_dark.gif\" alt=\"\" \/><\/figure>\n<p><span style=\"font-weight: 400;\">And of course, you don\u2019t want to neglect the <\/span><a rel=\"noopener\" href=\"https:\/\/litmus.com\/blog\/the-ultimate-guide-to-dark-mode-for-email-marketers\"><span style=\"font-weight: 400;\">Dark Mode view<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<h2>3. Building your framework of key components<\/h2>\n<p><span style=\"font-weight: 400;\">What are the elements that we need to make this work? Here, I\u2019ll break down what each of the classes do. (Why do I use classes instead of targeting CSS selectors with other methods like specificity or chaining? Using <\/span><a rel=\"noopener\" target=\"_blank\" href=\"https:\/\/www.sitepoint.com\/optimizing-css-id-selectors-and-other-myths\/\"><span style=\"font-weight: 400;\">shorter selectors speeds up the performance<\/span><\/a><span style=\"font-weight: 400;\">, and good class nomenclature makes it easier to understand and maintain so you can use it again and again!)<\/span><\/p>\n<p><strong>.wrapper-primary<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Wrapper for the entire interactive section.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<\/ul>\n<p><strong>.bgimg<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Background image foundation that you\u2019ll position all your hotspots and tooltips on.<\/span><\/li>\n<\/ul>\n<p><strong>.wrapper-secondary\u00a0<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Wrappers for each section, with absolute positioning hack. (See explanation in \u201cPositioning\u201d section below.)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<\/ul>\n<p><strong>.hot-tool-wrapper<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Wrappers that contain each individual hotspot\/tooltip section, with inline styles that position within the Desktop layout.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<\/ul>\n<p><strong>.hotspot-01<\/strong><span style=\"font-weight: 400;\">, <\/span><strong>.hotspot-02<\/strong><span style=\"font-weight: 400;\">, <\/span><strong>.hotspot-03<\/strong><span style=\"font-weight: 400;\">, etc&#8230;\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The actual images for the hotspot icons. They have individual class designations because they need to be individually positioned. Also, you don\u2019t need to use an image\u2014you can also use coded shapes if you prefer.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<\/ul>\n<p><strong>.tooltip-wrapper<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Wrapper for the tooltip and attached optional caret.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<\/ul>\n<p><strong>.caret<\/strong><span style=\"font-weight: 400;\"> (optional)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">These are optional because you may or may not want a caret for your design. These have custom inline CSS using margins to position it within the <\/span><strong>.tooltip-wrapper<\/strong><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">These are hidden under the mobile responsive view because they don\u2019t make sense with the new layout.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Like the hotspot images, this can also be a coded CSS shape if you prefer.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<\/ul>\n<p><strong>.tooltip-content<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The actual tooltip content that appears when a hotspot is activated.<\/span><\/li>\n<\/ul>\n<h2>4. Putting it all together<\/h2>\n<h3>Positioning the hotspots and tooltips<\/h3>\n<p><span style=\"font-weight: 400;\">Because these hotspots and tooltip sections inevitably overlap each other, I needed a solution for placing them that resembled absolute positioning\u2014which is unfortunately not well-supported in email. Luckily I found some inspiration with <\/span><a rel=\"noopener\" target=\"_blank\" href=\"https:\/\/freshinbox.com\/blog\/interactive-hotspots-in-email\/\"><span style=\"font-weight: 400;\">techniques from Mark Robbins and Justin Khoo<\/span><\/a><span style=\"font-weight: 400;\"> (two of my favorite #EmailGeeks!) that use <\/span><strong>max-height:0<\/strong><span style=\"font-weight: 400;\">, <\/span><strong>max-width:0<\/strong><span style=\"font-weight: 400;\">, and margins to position elements in email!<\/span><\/p>\n<p><strong>CSS<\/strong><\/p>\n<pre><code style=\"color: #fff; background: #333;\">.wrapper-secondary {\n  max-height: 0px;\n  max-width: 0px;\n}\n.hot-tool-wrapper {\n  position: relative;\n  display: inline-block;\n  max-width: 0px;\n}\n<\/code><\/pre>\n<p><strong>HTML<\/strong><\/p>\n<pre><code style=\"color: #fff; background: #333;\">&lt;div class=\"wrapper-secondary\"&gt;\n  &lt;div class=\"hot-tool-wrapper\" style=\"margin-top:5px; margin-left: 55px;\"&gt;\n      [Hotspot &amp; Tooltip content in here]\n  &lt;\/div&gt;\n&lt;\/div&gt;\n<\/code><\/pre>\n<h3>Setting up the hover interaction<\/h3>\n<p><span style=\"font-weight: 400;\">The mechanism causing the tooltips to appear is actually quite simple. The tooltips (<\/span><strong>.tooltip-wrapper<\/strong><span style=\"font-weight: 400;\">) are hidden by default, and then when the hotspot (<\/span><strong>.hot-tool-wrapper<\/strong><span style=\"font-weight: 400;\">) is hovered over, the tooltip is revealed. That\u2019s it!<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><strong>opacity<\/strong><span style=\"font-weight: 400;\"> and <\/span><strong>transition<\/strong><span style=\"font-weight: 400;\"> styles add a slight fade to the interaction, making it feel more smooth.<\/span><\/p>\n<p><strong>CSS<\/strong><\/p>\n<pre><code style=\"color: #fff; background: #333;\">.tooltip-wrapper {\n  max-height: 0;\n  opacity: 0;\n  overflow: hidden;\n  transition: 0.3s;\n}\n.hot-tool-wrapper:hover .tooltip-wrapper {\n  max-height: none !important;\n  opacity: 1 !important;\n  transition: 0.3s;\n}\n<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">Looking for a refresh on how to use hover effects in email? <\/span><a rel=\"noopener\" href=\"https:\/\/litmus.com\/blog\/interactive-email-for-beginners-6-interactive-elements-you-can-add-to-your-emails-today\"><span style=\"font-weight: 400;\">Check out this blog post.<\/span><\/a><\/p>\n<h3>Make it mobile responsive<\/h3>\n<p><span style=\"font-weight: 400;\">To transform the desktop design to the mobile design, I needed to:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><strong>.wrapper-primary<\/strong>, <strong>.bgimg<\/strong><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Resize the wrapper and background image<\/span><\/li>\n<li style=\"font-weight: 400;\"><strong>.hot-tool-wrapper<\/strong><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Zero out the original desktop positioning to make it easier to separate the hotspots and tooltip positioning on mobile<\/span><\/li>\n<li style=\"font-weight: 400;\"><strong>.hotspot-01<\/strong><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Re-position the individual hotspots to fit the smaller background image<\/span><\/li>\n<li style=\"font-weight: 400;\"><strong>.caret<\/strong><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Hide the carets<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><strong>.hotspot-01<\/strong><b> + <\/b><strong>.tooltip-wrapper<\/strong><b><br \/>\n<\/b><\/span>Reposition the tooltips so that they all appear in one area on the bottom<\/li>\n<\/ol>\n<p><strong>CSS<\/strong><\/p>\n<pre><code style=\"color: #fff; background: #333;\">@media only screen and (max-width: 480px) {\n  .wrapper-primary, .bgimg { \n    width: 350px !important; \n    height: 235px !important; \n  }\n  .hot-tool-wrapper { \n    margin-top: 0 !important; \n    margin-left: 0 !important; \n  }\n  .caret { \n    display: none !important; \n  }\n  .hotspot-01 { \n    margin-left: 130px !important; \n    margin-top: 0 !important; \n  }\n  .hotspot-01 + .tooltip-wrapper { \n    margin-left: 60px !important; \n    margin-top: 130px !important; \n  }\n}\n<\/code><\/pre>\n<h3>Set up the fallback<\/h3>\n<p><span style=\"font-weight: 400;\">Finally, here are all the pieces that go into making sure the interactive and fallback versions show up for the correct email clients. Many of these techniques can be found on <\/span><a rel=\"noopener\" target=\"_blank\" href=\"https:\/\/howtotarget.email\/\"><span style=\"font-weight: 400;\">How To Target Email Clients<\/span><\/a><span style=\"font-weight: 400;\">. Here, I\u2019ve separated out each targeting technique by email client to make it easier to see what\u2019s going on. Please <\/span><a rel=\"noopener\" href=\"https:\/\/litmus.com\/builder\/211be43\"><span style=\"font-weight: 400;\">refer back to the original code<\/span><\/a><span style=\"font-weight: 400;\"> to see how these have all been combined together in the final product.<\/span><\/p>\n<p><strong>Targeting All Outlook (except MacOS): CSS<\/strong><\/p>\n<pre><code style=\"color: #fff; background: #333;\">.outlookshow { display: none !important; }\n\nbody[data-outlook-cycle] .outlookshow { display:block !important; width: auto !important; overflow: visible !important; float: none !important; max-height:inherit !important; max-width:inherit !important; line-height: auto !important; margin-top:0px !important; visibility:inherit !important;}\n\nbody[data-outlook-cycle] .outlookhide { display:none !important; display:none; overflow:hidden; float:left; width:0px; max-height:0px; max-width:0px; line-height:0px; visibility:hidden; }\n\n[class~=\"x_outlookshow\"] { display:block !important; width: auto !important; overflow: visible !important; float: none !important; max-height:inherit !important; max-width:inherit !important; line-height: auto !important; margin-top:0px !important; visibility:inherit !important;}\n\n[class~=\"x_outlookhide\"] { display:none !important; display:none; overflow:hidden; float:left; width:0px; max-height:0px; max-width:0px; line-height:0px; visibility:hidden; }\n<\/code><\/pre>\n<p><strong>Targeting All Outlook (except MacOS): HTML<\/strong><\/p>\n<pre><code style=\"color: #fff; background: #333;\">&lt;!--[if !mso]&gt;&lt;! --&gt;\n&lt;div class=\"outlookhide\"&gt;\n        [Interactive Content Here]\n&lt;\/div&gt;\n&lt;!--&lt;![endif]--&gt;\n\n&lt;!--[if !mso]&gt;&lt;! --&gt;\n&lt;div class=\"outlookshow\"&gt;\n&lt;!--&lt;![endif]--&gt;\n        [Fallback Content Here]\n&lt;!--[if !mso]&gt;&lt;! --&gt;\n&lt;\/div&gt;\n&lt;!--&lt;![endif]--&gt;\n<\/code><\/pre>\n<p><strong>Targeting Yahoo: CSS\u00a0<\/strong><br \/>\n<span style=\"font-weight: 400;\">This must be nested within the <\/span><strong>&lt;body&gt;<\/strong><span style=\"font-weight: 400;\"> tag to target the Yahoo App as well, and you can use any unicode character in place of \u2603 as long as it doesn\u2019t get auto-converted by your ESP. This technique also happens to target AOL as well, which is an unfortunate side-effect because AOL actually supports interactivity very well. But due to the fact that AOL market share isn\u2019t very significant for our audience, I had to make a judgment call to cut it.<\/span><\/p>\n<pre style=\"margin-top: -25px;\"><code style=\"color: #fff; background: #333;\">&lt;body&gt;\n&lt;!-- START force fallback on Yahoo --&gt;\n&lt;style&gt;\n    .&amp; #\u2603 .yahoohide {display: none !important;}\n    .&amp; #\u2603 .yahooshow {display: block !important;}\n&lt;\/style&gt;\n&lt;!-- END force fallback on Yahoo --&gt;\n\n&lt;\/body&gt;\n<\/code><\/pre>\n<p><strong>Targeting Yahoo: HTML<\/strong><\/p>\n<pre style=\"margin-top: -25px;\"><code style=\"color: #fff; background: #333;\">&lt;table id=\"\u2603\"&gt;&lt;tr&gt;&lt;td&gt;\n\n&lt;div class=\"yahoohide\"&gt;\n    [Interactive Content Here]\n&lt;\/div&gt;\n\n&lt;div class=\"yahooshow\"&gt;\n    [Fallback Content Here]\n&lt;\/div&gt;\n\n&lt;\/td&gt;&lt;\/tr&gt;&lt;\/table&gt;\n<\/code><\/pre>\n<h2>The final result<\/h2>\n<figure id=\"post-25370 media-25370\" class=\"alignnone\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.litmus.com\/wp-content\/uploads\/2020\/04\/hotspots_full.gif\" alt=\"\" \/><\/figure>\n<p><span style=\"font-weight: 400;\">To see how all these elements come together in the final product, check out the <\/span><a rel=\"noopener\" href=\"https:\/\/litmus.com\/builder\/211be43\"><span style=\"font-weight: 400;\">element\u2019s full code<\/span><\/a><span style=\"font-weight: 400;\"> or see the <\/span><a rel=\"noopener\" href=\"https:\/\/litmus.com\/builder\/30f6768\"><span style=\"font-weight: 400;\">full code of our February newsletter<\/span><\/a><span style=\"font-weight: 400;\"> to see it all in the context of an email.<\/span><\/p>\n<h2>Now, over to you!<\/h2>\n<p><span style=\"font-weight: 400;\">Are you planning to use hotspots in any of your upcoming campaigns? Have you used hotspots in the past but built them using a different technique? We\u2019d love to see how creative email marketers like you are using hotspots to make your emails even more special. Share your thoughts and ideas in the comments below or reach out on Twitter <a rel=\"noopener\" target=\"_blank\" href=\"https:\/\/twitter.com\/litmusapp\">@litmusapp<\/a>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We can\u2019t wait to see all the beautiful, interactive emails you\u2019ll build!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Interactivity continues to be one of the hottest trends in email design\u2014and interactive hotspots are one of the most popular interactive elements in a marketer&#8217;s toolkit. Hotspots let your subscribers uncover additional information when they hover or click on an item in your email\u2014and allow marketers to provide an additional layer of detail to your emails without making your email design feel too crowded.<\/p>\n<p>Read up on the details of how we designed and coded our hotspots in a recent email with this step-by-step guide.<\/p>\n","protected":false},"author":3,"featured_media":3837,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"tags":[206],"blog_category":[53],"class_list":["post-3836","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-dynamic-content","blog_category-tips-resources"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Interactive Hotspots in Email: A Step-by-Step Guide - Litmus<\/title>\n<meta name=\"description\" content=\"Interactivity continues to be one of the hottest trends in email design\u2014and interactive hotspots are one of the most popular interactive elements in a marketer&#039;s toolkit. Hotspots let your subscribers uncover additional information when they hover or click on an item in your email\u2014and allow marketers to provide an additional layer of detail to your emails without making your email design feel too crowded. Read up on the details of how we designed and coded our hotspots in a recent email with this step-by-step guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Interactive Hotspots in Email: A Step-by-Step Guide\" \/>\n<meta property=\"og:description\" content=\"Interactivity continues to be one of the hottest trends in email design\u2014and interactive hotspots are one of the most popular interactive elements in a marketer&#039;s toolkit. Hotspots let your subscribers uncover additional information when they hover or click on an item in your email\u2014and allow marketers to provide an additional layer of detail to your emails without making your email design feel too crowded. Read up on the details of how we designed and coded our hotspots in a recent email with this step-by-step guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide\" \/>\n<meta property=\"og:site_name\" content=\"Litmus\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/litmusapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-30T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-13T16:56:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.litmus.com\/wp-content\/uploads\/2020\/04\/ultimate-guide-to-hotspots-in-email.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1380\" \/>\n\t<meta property=\"og:image:height\" content=\"724\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@litmusapp\" \/>\n<meta name=\"twitter:site\" content=\"@litmusapp\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Interactive Hotspots in Email: A Step-by-Step Guide - Litmus","description":"Interactivity continues to be one of the hottest trends in email design\u2014and interactive hotspots are one of the most popular interactive elements in a marketer's toolkit. Hotspots let your subscribers uncover additional information when they hover or click on an item in your email\u2014and allow marketers to provide an additional layer of detail to your emails without making your email design feel too crowded. Read up on the details of how we designed and coded our hotspots in a recent email with this step-by-step guide.","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:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide","og_locale":"en_US","og_type":"article","og_title":"Interactive Hotspots in Email: A Step-by-Step Guide","og_description":"Interactivity continues to be one of the hottest trends in email design\u2014and interactive hotspots are one of the most popular interactive elements in a marketer's toolkit. Hotspots let your subscribers uncover additional information when they hover or click on an item in your email\u2014and allow marketers to provide an additional layer of detail to your emails without making your email design feel too crowded. Read up on the details of how we designed and coded our hotspots in a recent email with this step-by-step guide.","og_url":"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide","og_site_name":"Litmus","article_publisher":"https:\/\/www.facebook.com\/litmusapp","article_published_time":"2020-03-30T00:00:00+00:00","article_modified_time":"2023-03-13T16:56:49+00:00","og_image":[{"width":1380,"height":724,"url":"https:\/\/www.litmus.com\/wp-content\/uploads\/2020\/04\/ultimate-guide-to-hotspots-in-email.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@litmusapp","twitter_site":"@litmusapp","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide#article","isPartOf":{"@id":"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide"},"author":{"name":"","@id":""},"headline":"Interactive Hotspots in Email: A Step-by-Step Guide","datePublished":"2020-03-30T00:00:00+00:00","dateModified":"2023-03-13T16:56:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide"},"wordCount":1847,"commentCount":0,"publisher":{"@id":"https:\/\/www.litmus.com\/#organization"},"image":{"@id":"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide#primaryimage"},"thumbnailUrl":"https:\/\/www.litmus.com\/wp-content\/uploads\/2020\/04\/ultimate-guide-to-hotspots-in-email.png","keywords":["Dynamic Content"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide","url":"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide","name":"Interactive Hotspots in Email: A Step-by-Step Guide - Litmus","isPartOf":{"@id":"https:\/\/www.litmus.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide#primaryimage"},"image":{"@id":"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide#primaryimage"},"thumbnailUrl":"https:\/\/www.litmus.com\/wp-content\/uploads\/2020\/04\/ultimate-guide-to-hotspots-in-email.png","datePublished":"2020-03-30T00:00:00+00:00","dateModified":"2023-03-13T16:56:49+00:00","description":"Interactivity continues to be one of the hottest trends in email design\u2014and interactive hotspots are one of the most popular interactive elements in a marketer's toolkit. Hotspots let your subscribers uncover additional information when they hover or click on an item in your email\u2014and allow marketers to provide an additional layer of detail to your emails without making your email design feel too crowded. Read up on the details of how we designed and coded our hotspots in a recent email with this step-by-step guide.","breadcrumb":{"@id":"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide#primaryimage","url":"https:\/\/www.litmus.com\/wp-content\/uploads\/2020\/04\/ultimate-guide-to-hotspots-in-email.png","contentUrl":"https:\/\/www.litmus.com\/wp-content\/uploads\/2020\/04\/ultimate-guide-to-hotspots-in-email.png","width":1380,"height":724},{"@type":"BreadcrumbList","@id":"https:\/\/www.litmus.com\/blog\/interactive-hotspots-in-email-a-step-by-step-guide#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.litmus.com\/"},{"@type":"ListItem","position":2,"name":"Interactive Hotspots in Email: A Step-by-Step Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.litmus.com\/#website","url":"https:\/\/www.litmus.com\/","name":"Litmus","description":"Are you getting the most out of your email marketing?","publisher":{"@id":"https:\/\/www.litmus.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.litmus.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.litmus.com\/#organization","name":"Litmus Software","url":"https:\/\/www.litmus.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.litmus.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.litmus.com\/wp-content\/uploads\/2025\/04\/featured-image.png","contentUrl":"https:\/\/www.litmus.com\/wp-content\/uploads\/2025\/04\/featured-image.png","width":600,"height":314,"caption":"Litmus Software"},"image":{"@id":"https:\/\/www.litmus.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/litmusapp","https:\/\/x.com\/litmusapp"]},{"@type":"Person","@id":""}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/posts\/3836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/comments?post=3836"}],"version-history":[{"count":1,"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/posts\/3836\/revisions"}],"predecessor-version":[{"id":63634,"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/posts\/3836\/revisions\/63634"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/media\/3837"}],"wp:attachment":[{"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/media?parent=3836"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/tags?post=3836"},{"taxonomy":"blog_category","embeddable":true,"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/blog_category?post=3836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}