# background Image is repeating incorrectly

**URL:** <https://community.hubspot.com/t/background-image-is-repeating-incorrectly/9236>\
**Category:** CMS Development\
**Created:** [June 23, 2018, 2:10am UTC](https://community.hubspot.com/t/background-image-is-repeating-incorrectly/9236 "2018-06-23T02:10:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![randymalmquist](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/randymalmquist/32/35155_2.png) [@randymalmquist](https://community.hubspot.com/u/randymalmquist)\
**Post date:** [June 23, 2018, 2:10am UTC](https://community.hubspot.com/t/background-image-is-repeating-incorrectly/9236/1 "2018-06-23T02:10:31Z")

</div>

Hello, on a landing page the background image settings are set to 100% and all other directions have been follwed but it is still repeating, causing it to be cutoff by the desktop version on the right side, see below

 ![GDPR.JPG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/7/9793bd40d90c73c0263f2278cdcc7b276929d0d5.jpeg)

---

<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:** [June 23, 2018, 9:49pm UTC](https://community.hubspot.com/t/background-image-is-repeating-incorrectly/9236/2 "2018-06-23T21:49:18Z")

</div>

@randymalmquist - Add the following css to the div that has the image as the background:

```auto
background-size: cover !important;
background-position: center center !important;

```

* * *

[tim@belch.io](mailto:tim@belch.io)

---

<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:** [June 25, 2018, 10:23am UTC](https://community.hubspot.com/t/background-image-is-repeating-incorrectly/9236/3 "2018-06-25T10:23:58Z")

</div>

@tjoyce is most likely right about this.

For some reason when a background image is applied inline, like yours most likely is for the sake of it’s editability, background style rules applied from a stylesheet won’t take effect unless you use important tags on them. It’s not a Hubspot thing, its a web dev thing. If your background image is applied inline then use !important on any “background-” attribute applied from your stylesheet.
