# Module for Background Image

**URL:** <https://community.hubspot.com/t/module-for-background-image/35795>\
**Category:** CMS Development\
**Tags:** design-manager\
**Created:** [April 20, 2021, 2:36pm UTC](https://community.hubspot.com/t/module-for-background-image/35795 "2021-04-20T14:36:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rossatgrowth](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rossatgrowth/32/106227_2.png) [@rossatgrowth](https://community.hubspot.com/u/rossatgrowth)\
**Post date:** [April 20, 2021, 2:36pm UTC](https://community.hubspot.com/t/module-for-background-image/35795/1 "2021-04-20T14:36:26Z")

</div>

Hello all. I’m attempting to use a module so a client can set their own background image—unfortunately, doesn’t seem to work as expected. Instead of using the variable it simply shows up as blank (as in background: url()). Help is much appreciated!

 ![41217i028AD07BED4165D5.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/8/c87262fe5ad8b952d8ef15b78cff141a7715496e.png)

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [April 20, 2021, 3:02pm UTC](https://community.hubspot.com/t/module-for-background-image/35795/2 "2021-04-20T15:02:26Z")

</div>

@rossatgrowth

A warning usually shows up in modules to tell you “HubL in your CSS or JavaScript won’t be parsed”. You would need to move the CSS into your HTML section either as a style block or inline. Also, you’ll want to use {{ module.background\_image.src }} to render the src url of the image.

---

<div class="post-metadata">

**Author:** ![rossatgrowth](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rossatgrowth/32/106227_2.png) [@rossatgrowth](https://community.hubspot.com/u/rossatgrowth)\
**Post date:** [April 20, 2021, 3:13pm UTC](https://community.hubspot.com/t/module-for-background-image/35795/3 "2021-04-20T15:13:21Z")

</div>

Worked like a charm! Interesting I didn’t get that warning.

Thanks, @alyssamwilie!

-Ross
