# BG Image not showing

**URL:** <https://community.hubspot.com/t/bg-image-not-showing/9420>\
**Category:** CMS Development\
**Created:** [July 11, 2018, 5:07pm UTC](https://community.hubspot.com/t/bg-image-not-showing/9420 "2018-07-11T17:07:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![choltzman](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/choltzman/32/59606_2.png) [@choltzman](https://community.hubspot.com/u/choltzman)\
**Post date:** [July 11, 2018, 5:07pm UTC](https://community.hubspot.com/t/bg-image-not-showing/9420/1 "2018-07-11T17:07:45Z")

</div>

I have a background image module set-up but the image behind the video is not showing up as a background image. If I remove display none the image shows but only as an image and not as a background image.

[http://cloud.baass.com/cconnect2018-v4?hs\_preview=QRXMZRIf-5952730153](http://cloud.baass.com/cconnect2018-v4?hs_preview=QRXMZRIf-5952730153)

---

<div class="post-metadata">

**Author:** ![tjoyce](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tjoyce/32/88832_2.png) [@tjoyce](https://community.hubspot.com/u/tjoyce)\
**Post date:** [July 11, 2018, 11:34pm UTC](https://community.hubspot.com/t/bg-image-not-showing/9420/2 "2018-07-11T23:34:27Z")

</div>

give us a screenshot of which section you’re referring to. It’s a large page.

---

<div class="post-metadata">

**Author:** ![choltzman](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/choltzman/32/59606_2.png) [@choltzman](https://community.hubspot.com/u/choltzman)\
**Post date:** [July 12, 2018, 12:45pm UTC](https://community.hubspot.com/t/bg-image-not-showing/9420/3 "2018-07-12T12:45:20Z")

</div>

Here is a screen shot of the page and of the template. And Here is the css from the external style sheet. [http://cloud.baass.com/cconnect2018-v5?hs\_preview=PhOHeaPb-5954426036](http://cloud.baass.com/cconnect2018-v5?hs_preview=PhOHeaPb-5954426036)

```auto
 /* Video Background Image Banner */
.video-banner .color-overlay {display:none;}

.video-banner{
 background-position: top center;
 background-size: cover;
 background-repeat: no-repeat;
 padding: 100px 30px 80px 30px;
 position: relative;
 min-height: 660px !important;
}
.video-banner-image{
 display: none !important;
}
.video-banner .color-overlay{
 position: absolute;
 top: 0;
 right: 0;
 bottom: 0;
 left: 0;
 background-color: rgba(0, 0, 0, .3);
 z-index: 99;
}
.video-banner-text{
 color: #ffffff;
 position: relative;
 z-index: 100;
}
.video-banner-text h1,
.video-banner-text h2,
.video-banner-text h3,
.video-banner-text h4,
.video-banner-text h5,
.video-banner-text h6,
.video-banner-text p {
 color: #ffffff;
}
.video-banner-text h1{
 font-family: {{ webFont1 }};
 font-size: 57px;
 text-transform: uppercase;
 letter-spacing: 4px;
 font-weight: 700;
 margin: 0px 0px;
}
.video-banner-text h2{
 font-size: 42px;
 font-weight: 700;
}
.video-banner-text h3{
 font-size: 30px;
 font-weight: 700;
}
.video-banner-text p{
 font-size: 18px;
}
.video-banner-text .cta_button{
 display: inline-block;
 background-color: {{ accentColor1 }};
 color: #ffffff;
 font-size: 18px;
 padding: 11px 24px;
 font-family: {{ webFont1 }};
 text-transform: uppercase;
 text-decoration: none;
 letter-spacing: 2px;
 {{ transition("background-color .1s 0s ease-in-out, color .1s 0s ease-in-out") }}
}
.video-banner-text .cta_button:hover{
 background-color: {{ accentColor2 }};
}

```

 ![vidBGTemplate.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/c/1c0a98e5fb354da96e5237d7a137f5206258f3e0.png)

 ![videoBG.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/7/17e2ddb0aa7bd83bdad2cc139534a2b338408e3e.png)

---

<div class="post-metadata">

**Author:** ![tjoyce](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tjoyce/32/88832_2.png) [@tjoyce](https://community.hubspot.com/u/tjoyce)\
**Post date:** [July 12, 2018, 1:17pm UTC](https://community.hubspot.com/t/bg-image-not-showing/9420/4 "2018-07-12T13:17:39Z")

</div>

Could you just add the following CSS?

```auto
.video-banner {
 background: url(https://cloud.baass.com/hs-fs/hubfs/BAASS.com_/BAASS%20Connect/BAASS_Connect_2018/BG-IMG-02.jpg) no-repeat;
 background-size: cover !important;
 background-position: center center;
}

```

* * *

If this answer helped, please, mark as solved 😄

* * *

[tim@belch.io](mailto:tim@belch.io) | [forms.belch.io](https://forms.belch.io) | Design your own Beautiful HubSpot Forms; No coding necessary.

Drop by and say Hi to me [on slack](http://slack.belch.io/).

---

<div class="post-metadata">

**Author:** ![choltzman](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/choltzman/32/59606_2.png) [@choltzman](https://community.hubspot.com/u/choltzman)\
**Post date:** [July 12, 2018, 1:23pm UTC](https://community.hubspot.com/t/bg-image-not-showing/9420/5 "2018-07-12T13:23:34Z")

</div>

Thanks. It worked. I was hoping to get it working without code so it would be changable in the page editor but for now this works. Thanks a bunch!

---

<div class="post-metadata">

**Author:** ![Nata](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nata/32/18373_2.png) [@Nata](https://community.hubspot.com/u/Nata)\
**Post date:** [October 25, 2018, 9:23pm UTC](https://community.hubspot.com/t/bg-image-not-showing/9420/6 "2018-10-25T21:23:51Z")

</div>

Hi,

I have the same problem but with Hubspot free theme Skyline\_HubTheme, none of the Background images show up.

I am not a programmer,

Here is what the javascript code shows:

```auto
 /** 
 * Set Banner Image on Homepage
 */

 // Grab the SRC of the Background Image module uploaded image
 var bannersrc=$(".background-image").find("img").attr("src");

 // Apply the src as the background image for the banner area
 $(".banner-background").css('background-image', 'url(' + bannerSRC + ')');

 /** 
 * Set Services Image on Homepage
 */

 // Grab the SRC of the Background Image module uploaded image
 var servicesBannersrc=$(".services-image").find("img").attr("src");

 // Apply the src as the background image for the banner area
 $(".home-service-background").css('background-image', 'url(' + servicesBannerSRC + ')');

```

And here is what the CSS code shows for the banner:

```auto
/* Homepage */

 /* banner background */
 .banner-background {
 background-repeat: no-repeat;
 background-position: center bottom;
 background-size: cover;
 min-height: 442px;
 }
 .banner-background .background-image {
 display: none !important;
 }
 .banner-background h1 {
 margin: 0 0 10px 0;
 padding: 0;
 font-size: 42px;
 color: #07617D;
 text-transform: uppercase;
 text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
 line-height: 58px;
 }
 .banner-background .headline {
 background-color: rgba(0,0,0,0.4);
 padding: 18px;
 color: #fff;
 margin-bottom: 10px;
 text-transform: uppercase;
 font-size: 28px;
 font-family: {{ webFont1 }};
 }
 .banner-background .icon {
 line-height: 1.2;
 text-align: center;
 position: absolute;
 width: 100%;
 }

```

and CSS for the Services background:

```auto
 /* our services */
 .home-service-background {
 color: #fff;
 text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
 font-size: 14px;
 background-repeat: no-repeat;
 background-position: center bottom;
 background-size: cover;
 }
 .home-service-background .services-image {
 display: none !important;
 }
 .home-service-background h3 {
 color: {{ accentColor5 }};
 }
 .home-service-background h2 {
 color: #fff;
 text-transform: uppercase;
 font-size: 52px;
 line-height: 56px;
 padding-bottom: 40px;
 margin: 0;
 }
 .home-service-background .icon {
 text-align: center;
 }
 .home-service-background .icon .fa {
 font-size: 70px;
 padding-top: 40px;
 }

```

Does anyone know what is that I need to fix to show both images?

Thanks

---

<div class="post-metadata">

**Author:** ![Simon\_Goldie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/simon_goldie/32/97348_2.png) [@Simon\_Goldie](https://community.hubspot.com/u/Simon_Goldie)\
**Post date:** [July 12, 2018, 10:50am UTC](https://community.hubspot.com/t/bg-image-not-showing/9420/7 "2018-07-12T10:50:24Z")

</div>

Need a little more info on what you’re trying to achieve here but from what I see, you’ve dropped an image in to be used as a background but included it as a block level element.

You either need to adjust your module to have the image as a background image (assuming this is a custom module) or adjust the current code with css to position it beneath the content using position: absolute and such to take it out of the DOM structure then resize it to fill the parent container element.
