# VML + HubSpot Module

**URL:** <https://community.hubspot.com/t/vml-hubspot-module/40947>\
**Category:** Email Marketing Tool\
**Tags:** marketing-email\
**Created:** [July 19, 2021, 3:59pm UTC](https://community.hubspot.com/t/vml-hubspot-module/40947 "2021-07-19T15:59:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstruble](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cstruble/32/38114_2.png) [@cstruble](https://community.hubspot.com/u/cstruble)\
**Post date:** [July 19, 2021, 3:59pm UTC](https://community.hubspot.com/t/vml-hubspot-module/40947/1 "2021-07-19T15:59:48Z")

</div>

Hello,

I’m trying to implement [“bulletproof” email background images](https://www.litmus.com/blog/the-ultimate-guide-to-background-images-in-email/) into my email templates _(as the background image currently doesn’t show in Outlook)_. However, I am not sure how to get the VML code to work with our module where the end-user adds the background image…

Here’s my current code that works (but the image is hard coded within VML):

\<!--Outlook Fix for Background Image--\>  
\<td valign=“top” colspan=12 width=“100.0%” class=" column" style=“width:100.0%; text-align: left; padding: 0; font-family: {{ primary\_font }}; font-size: {{ primary\_font\_size }}; line-height: 1.5em; color: {{ primary\_font\_color }}; background-color:#30ccc9; background-position:center center; background-size:cover; {% module “module\_16129825897992” path=”/Navigate360/Email/parts/Email Background Image", label=“Email Background Image”, no\_wrapper=True %}“\>  
\<!--[if gte mso 9]\>  
\<v:rect xmlns:v=“urn:schemas-microsoft-com:vml” fill=“true” stroke=“false” style=“width:600px;”\>  
\<v:fill type=“tile” src=“[https://info.navigate360.com/hubfs/Email%20Headers/600x725/Nav360-K12-EB-070221-How%20District%20Leaders%20Can%20Recognize%20Prevent%20Student%20Harm%20to%20Self%20and%20Others-600x725.jpg](https://info.navigate360.com/hubfs/Email%20Headers/600x725/Nav360-K12-EB-070221-How%20District%20Leaders%20Can%20Recognize%20Prevent%20Student%20Harm%20to%20Self%20and%20Others-600x725.jpg)” color=”#30ccc9" /\>  
\<v:textbox style=“mso-fit-shape-to-text:true” inset=“0,0,0,0”\>  
\<![endif]--\>  
\<div\>  
\<!--End Outlook Fix for Background Image--\>

Any ideas?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![MiaSrebrnjak](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miasrebrnjak/32/10_2.png) [@MiaSrebrnjak](https://community.hubspot.com/u/MiaSrebrnjak)\
**Post date:** [July 20, 2021, 3:36pm UTC](https://community.hubspot.com/t/vml-hubspot-module/40947/2 "2021-07-20T15:36:14Z")

</div>

Hi @cstruble,

Thank you for reaching out to the Community! There are 2 resources I wanted to share as a starting point:

- Have you checked[this recently updated how-to guide](https://blog.hubspot.com/marketing/email-background-image) on background images for marketing emails?
- [This great Community post](https://community.hubspot.com/t5/Share-Your-Work/Add-a-Background-Image-to-Your-HubSpot-Email-Template-Custom/td-p/204597) where @Stephanie-OG explains her workaround is a bit older, but it could be helpful as well. @Stephanie-OG do you maybe have any additional input you would like to share? Thank you!

I hope this helps!

Cheers

Mia

---

<div class="post-metadata">

**Author:** ![cstruble](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cstruble/32/38114_2.png) [@cstruble](https://community.hubspot.com/u/cstruble)\
**Post date:** [July 22, 2021, 12:53pm UTC](https://community.hubspot.com/t/vml-hubspot-module/40947/3 "2021-07-22T12:53:27Z")

</div>

@MiaSrebrnjak - Thank you for the reply. The article by @Stephanie-OG was extremely helpful and will resolve my issue from my initial tests.

Thanks again for your help!
