# Changing background image on a Template Level

**URL:** <https://community.hubspot.com/t/changing-background-image-on-a-template-level/2818>\
**Category:** CMS Development\
**Created:** [July 25, 2017, 9:25am UTC](https://community.hubspot.com/t/changing-background-image-on-a-template-level/2818 "2017-07-25T09:25:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alponce](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alponce/32/92090_2.png) [@alponce](https://community.hubspot.com/u/alponce)\
**Post date:** [July 25, 2017, 9:25am UTC](https://community.hubspot.com/t/changing-background-image-on-a-template-level/2818/1 "2017-07-25T09:25:00Z")

</div>

Hi All,

I’m having a problem in inserting background image on a group module (div), I’ve tried to insert this css style syntax:

background-image: url(‘\<sample\_url\_from\_the\_web\>’);

I am applying this via the CSS declaration on the module and even via the external css sheet. Please advise if I am missing something.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [July 25, 2017, 9:43am UTC](https://community.hubspot.com/t/changing-background-image-on-a-template-level/2818/2 "2017-07-25T09:43:09Z")

</div>

Hi @alponce,  
This css should work. If it is not working, it might be mostly because of abrupt ending.  
Try with urls which don’t have ‘)’ in it.

Or try it as,  
background:url(‘[https://storage.googleapis.com/madebygoog/v1/buy/googleplaymusic.png](https://storage.googleapis.com/madebygoog/v1/buy/googleplaymusic.png)’);

---

<div class="post-metadata">

**Author:** ![Jsum](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jsum/32/20405_2.png) [@Jsum](https://community.hubspot.com/u/Jsum)\
**Post date:** [July 25, 2017, 9:47am UTC](https://community.hubspot.com/t/changing-background-image-on-a-template-level/2818/3 "2017-07-25T09:47:28Z")

</div>

@alponce,

Your syntax should look like this if you are using html:

```auto
<div style="background-image: url(url.jpg);">

</div>

```

If you are trying to place this in the css of a drag and drop module then You shouldn’t be having an issue. Maybe try removing the quotes from around the image url.
