<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Responsive images for emails - seperate images for mobile and desktop in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Responsive-images-for-emails-seperate-images-for-mobile-and/m-p/33797#M3265</link>
    <description>&lt;P&gt;Media queries aren't recognized by some email clients (including the android gmail app!?!?) I always suggest to avoid using them all together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also Hubspot forces some css on mobile that is pretty annoying. If you check your inspector you will see something like:&lt;/P&gt;&lt;PRE&gt;img {
    width: 100% !important;
    height: 100% !important;
}&lt;/PRE&gt;&lt;P&gt;This could be causing your issue.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Oct 2017 12:00:51 GMT</pubDate>
    <dc:creator>Jsum</dc:creator>
    <dc:date>2017-10-15T12:00:51Z</dc:date>
    <item>
      <title>Responsive images for emails - seperate images for mobile and desktop</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Responsive-images-for-emails-seperate-images-for-mobile-and/m-p/33169#M3209</link>
      <description>&lt;P&gt;Hi Y'all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have been referred here by Hupsot support. We have been having trouble with our email templates on hubspot displaying our email images responsively and was hoping someone could help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently our email template is designed to show one image for mobile and a different image for desktop. We hide the mobile image for desktop by making it 1x1px and then scale responsively using CSS for mobile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We were able to do this on our previous platform as the 1x1px image would be scaled to it's original size, whereas on Hubspot we're seeing the 1x1px stretch to the new size, rather than the full image loading (see below).&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Image not displaying correctly in mobile version - relevent html visible to right lines 138-143" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/5829i8664ECF49DD43426/image-size/large?v=v2&amp;amp;px=999" role="button" title="HS mobile image not displaying correctly.png" alt="Image not displaying correctly in mobile version - relevent html visible to right lines 138-143" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Image not displaying correctly in mobile version - relevent html visible to right lines 138-143&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The strange thing is the code responds as expected outside of hubspot - it is only when loaded into hubspot that the problem occurs. And, we think may be linked to when we re-hosted the images for the email on Hubspot rather than our original platform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mobile version of image displaying correctly outside of hubspot" style="width: 868px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/5830i63DD19BFBF53CA95/image-size/large?v=v2&amp;amp;px=999" role="button" title="Extras email with just mobile hero image visible.PNG" alt="Mobile version of image displaying correctly outside of hubspot" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Mobile version of image displaying correctly outside of hubspot&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="desktop version of image displaying correctly outside of hubspot" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/5831iD51681E1C4C932F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Extras email with full hero image visible.PNG" alt="desktop version of image displaying correctly outside of hubspot" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;desktop version of image displaying correctly outside of hubspot&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why this might be occuring and how we could fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And, if not does anyone have a solution for how to display a seperate image for mobile and desktop using hubspot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you massively in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 14:46:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Responsive-images-for-emails-seperate-images-for-mobile-and/m-p/33169#M3209</guid>
      <dc:creator>CaptainToby</dc:creator>
      <dc:date>2017-10-09T14:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Responsive images for emails - seperate images for mobile and desktop</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Responsive-images-for-emails-seperate-images-for-mobile-and/m-p/33532#M3238</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First make sure that I understood your requirements well, If not please correct me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My suggestion is you can add media queries for the particular device in the header section.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="head.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/5874i35D59B5B3E533C1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="head.png" alt="head.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As shown in the above image, please choose head section and enter images with media queries which&amp;nbsp;will be support for the responsive devices.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 06:43:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Responsive-images-for-emails-seperate-images-for-mobile-and/m-p/33532#M3238</guid>
      <dc:creator>jackjadish</dc:creator>
      <dc:date>2017-10-12T06:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Responsive images for emails - seperate images for mobile and desktop</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Responsive-images-for-emails-seperate-images-for-mobile-and/m-p/33544#M3240</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for taking the time to respond &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We currently already use media enquiries to scale the images. And, the code responds as expected outside of Hubspot. It is only when the images are hosted on Hubspot that the code no longer reponds as expected. We are currently using a work around of hosting the images externally. But are interested to know why the issues might be occuring, as well as best practice on Hubspot when using a seperate image for desktop and mobile versions of the email.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 08:51:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Responsive-images-for-emails-seperate-images-for-mobile-and/m-p/33544#M3240</guid>
      <dc:creator>CaptainToby</dc:creator>
      <dc:date>2017-10-12T08:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Responsive images for emails - seperate images for mobile and desktop</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Responsive-images-for-emails-seperate-images-for-mobile-and/m-p/33547#M3241</link>
      <description>&lt;P&gt;That may be the cerification http | https pags, so&amp;nbsp;there is a chnace for image loading issue.&lt;/P&gt;&lt;P&gt;I'm not sure. But I have seen this kind of issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 09:13:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Responsive-images-for-emails-seperate-images-for-mobile-and/m-p/33547#M3241</guid>
      <dc:creator>jackjadish</dc:creator>
      <dc:date>2017-10-12T09:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Responsive images for emails - seperate images for mobile and desktop</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Responsive-images-for-emails-seperate-images-for-mobile-and/m-p/33797#M3265</link>
      <description>&lt;P&gt;Media queries aren't recognized by some email clients (including the android gmail app!?!?) I always suggest to avoid using them all together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also Hubspot forces some css on mobile that is pretty annoying. If you check your inspector you will see something like:&lt;/P&gt;&lt;PRE&gt;img {
    width: 100% !important;
    height: 100% !important;
}&lt;/PRE&gt;&lt;P&gt;This could be causing your issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2017 12:00:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Responsive-images-for-emails-seperate-images-for-mobile-and/m-p/33797#M3265</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2017-10-15T12:00:51Z</dc:date>
    </item>
  </channel>
</rss>

