Title: Background image CSS issue
Last modified: November 7, 2019

---

# Background image CSS issue

 *  Resolved [Jim](https://wordpress.org/support/users/digitalredefined/)
 * (@digitalredefined)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/background-image-css-issue/)
 * I am using the current version of the plugin and when I added a background image,
   it wasn’t displaying. In dev console, the CSS generated for the BG, it says “
   Invalid Property Value”.
 * I ended up overriding the class in my own CSS file and defining the attributes
   individually and the BG now works. Your code “looks” correct so not sure why 
   Chrome(Version 78.0.3904.70) has an issue with it.
 * INVALID:
    .wpd-av-overlay { background-image: url([https://santamonicabrewworks.loc/wp-content/uploads/2019/11/age_verification_overlay_bg.png](https://santamonicabrewworks.loc/wp-content/uploads/2019/11/age_verification_overlay_bg.png))
   no-repeat center center; box-sizing: border-box; background-size: cover; background-
   attachment: fixed; }
 * WORKS:
    .wpd-av-overlay { background-image: url([https://santamonicabrewworks.loc/wp-content/uploads/2019/11/age_verification_overlay_bg.png](https://santamonicabrewworks.loc/wp-content/uploads/2019/11/age_verification_overlay_bg.png));
   background-repeat: no-repeat; background-position: center; box-sizing: border-
   box; background-size: cover; background-attachment: fixed; }

Viewing 1 replies (of 1 total)

 *  Plugin Author [Robert DeVore](https://wordpress.org/support/users/deviodigital/)
 * (@deviodigital)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/background-image-css-issue/#post-12201688)
 * Thanks Jim! I am updating the plugin today so I’m going to have the updated CSS
   included.
 * I _think_ it’s because I used **background-image** and not just **background**.
 * Either way, I’m updating it with your CSS fixes 🙂

Viewing 1 replies (of 1 total)

The topic ‘Background image CSS issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dispensary-age-verification_f58383.
   svg)
 * [Age Verification](https://wordpress.org/plugins/dispensary-age-verification/)
 * [Support Threads](https://wordpress.org/support/plugin/dispensary-age-verification/)
 * [Active Topics](https://wordpress.org/support/plugin/dispensary-age-verification/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dispensary-age-verification/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dispensary-age-verification/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Robert DeVore](https://wordpress.org/support/users/deviodigital/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/background-image-css-issue/#post-12201688)
 * Status: resolved