# Layer form over background image

**URL:** <https://community.hubspot.com/t/layer-form-over-background-image/20428>\
**Category:** CMS Development\
**Created:** [April 28, 2020, 7:16am UTC](https://community.hubspot.com/t/layer-form-over-background-image/20428 "2020-04-28T07:16:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AllisonZ](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/allisonz/32/27745_2.png) [@AllisonZ](https://community.hubspot.com/u/AllisonZ)\
**Post date:** [April 28, 2020, 7:16am UTC](https://community.hubspot.com/t/layer-form-over-background-image/20428/1 "2020-04-28T07:16:50Z")

</div>

**Hi HubSpot Design Community,**

Looking for assistance in layering a form over a background image.

**Goal:** Layer form over background image in banner of Landing Page

**Details:** I have tried adding it in on the template level as a field to the HTML + HubL within the banner image module. I was able to add the field but nothing showed on the template level.

 ![Field_1.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/2/b20e0a40c81ef43e18c4254c9b2c576587796c32.jpeg)

I would like it to look something like this:

 ![Field_2.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/19ece56259e13347c3ab5ec42371a97ae01f2217.jpeg)

What would be the best way to achieve this?

Thanks in advance!

Allison

---

<div class="post-metadata">

**Author:** ![jieyintan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jieyintan/32/29368_2.png) [@jieyintan](https://community.hubspot.com/u/jieyintan)\
**Post date:** [April 28, 2020, 8:56am UTC](https://community.hubspot.com/t/layer-form-over-background-image/20428/2 "2020-04-28T08:56:00Z")

</div>

Hi @AllisonZ

I had a quick look at your custom module, and it looks your code is right. We could probably just be missing a background image. 🙂

 ![Screen Shot 2020-04-28 at 4.47.00 pm.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/e/decc84ef9782e7018f31755f10ab3f9d66531afa.jpeg)  
No default image selected in custom module  
 ![Screen Shot 2020-04-28 at 4.46.39 pm.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/f/9faab29278734857439214c5cafe561c61d35dfe.png)  
You can select an image here on the Design Previewer/Content Editor too

I noticed in the second screenshot that your \<div\> height is pretty short because there isn’t much content right now. To overcome this, you can consider specifying a **min-height** for your \<div\> in your CSS.

I’ve set up a simplified custom module on my end as an example:

 ![Screen Shot 2020-04-28 at 4.52.22 pm.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/8/8658e1267638b2a4f4cf8c93d32773affdcd4088.jpeg)  
Configuring the CSS for min-height

 ![Screen Shot 2020-04-28 at 4.52.29 pm.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/e/ead694abfa5f25ffad8393970e479355f923e073.jpeg)  
How this simplified module looks

Let me know if that works for you! Feel free to reach out directly to me too to troubleshoot this together. 🙂

---

<div class="post-metadata">

**Author:** ![AllisonZ](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/allisonz/32/27745_2.png) [@AllisonZ](https://community.hubspot.com/u/AllisonZ)\
**Post date:** [April 29, 2020, 5:52am UTC](https://community.hubspot.com/t/layer-form-over-background-image/20428/3 "2020-04-29T05:52:10Z")

</div>

Hi Jie,

thank you for providing a workable solution! Your suggestion enabled me to layer a form over the background banner image.

Thank you again!

Allison
