# Need help to create overlay for a hero

**URL:** <https://community.hubspot.com/t/need-help-to-create-overlay-for-a-hero/3914>\
**Category:** CMS Development\
**Created:** [November 15, 2017, 5:13pm UTC](https://community.hubspot.com/t/need-help-to-create-overlay-for-a-hero/3914 "2017-11-15T17:13:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandra](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alexandra/32/94932_2.png) [@Alexandra](https://community.hubspot.com/u/Alexandra)\
**Post date:** [November 15, 2017, 5:13pm UTC](https://community.hubspot.com/t/need-help-to-create-overlay-for-a-hero/3914/1 "2017-11-15T17:13:41Z")

</div>

Hi,

I am very new to Hubspot and I need to create an overlay effect so I can have my header image with some text and a form on the top.

For that I need to create an overlay, however the only thing I see in the left bar is a rectangle named “flexible colum”. Could you please explain me step by step, how to create that ?

Thank you,

Alexandra

---

<div class="post-metadata">

**Author:** ![TRooInbound](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/trooinbound/32/89545_2.png) [@TRooInbound](https://community.hubspot.com/u/TRooInbound)\
**Post date:** [November 16, 2017, 5:54am UTC](https://community.hubspot.com/t/need-help-to-create-overlay-for-a-hero/3914/2 "2017-11-16T05:54:44Z")

</div>

Hi @Alexandra,

Welcome to HubSpot!

We will suggest you follow simple steps to create an overlay effect,

this is code, you have to just replace with your hero banner class name and related RGB Color code.

```auto
.hero-banner {
 position: relative;
 z-index: 1;
}

.hero-banner:after {
 content: "";
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100px;
 background-color: rgba(17,17,17,0.7);
 height: 100%;
 z-index: -1;
}

```

**Note:** you can find Color RGBA Code from [here](http://www.december.com/html/spec/colorrgbadec.html)

Hope this work

TRooInbound Team!

---

<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:** [November 16, 2017, 8:05am UTC](https://community.hubspot.com/t/need-help-to-create-overlay-for-a-hero/3914/3 "2017-11-16T08:05:53Z")

</div>

@Alexandra,

I think what you are wanting to do is have a section with some content and a form, and you would like an image behind this section as a background image?

You don’t need to do any complication stuff, to do this. You just need to apply a background image to that section which you can do using the inline css in the css options for the wrapper containing your form and content. add:

`background: url(image.png) center center no-repeat; background-size: cover;`

in the inline css for the wrapper, where image.png is the url of your background image.

If you want it to be editable you can use a HubL image module in place of the static image url, just make sure you use single quotes in the module snippet because the template will generate double quotes around the css when the template is processed.

---

<div class="post-metadata">

**Author:** ![Alexandra](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alexandra/32/94932_2.png) [@Alexandra](https://community.hubspot.com/u/Alexandra)\
**Post date:** [November 16, 2017, 10:46am UTC](https://community.hubspot.com/t/need-help-to-create-overlay-for-a-hero/3914/4 "2017-11-16T10:46:19Z")

</div>

Thank you so much for your help !
