Title: background-attachment: fixed for background image
Last modified: August 24, 2016

---

# background-attachment: fixed for background image

 *  Resolved [ReHackt](https://wordpress.org/support/users/rehackt/)
 * (@rehackt)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/background-attachment-fixed-for-background-image/)
 * Hi,
 * I really love your theme ! Everything’s fine with the PC/MAC version of my website.
 * The problem is that, when I am on mobile devices / tablets, my background image
   acts weird.
 * I’ve read that the attribute “background-attachment: fixed” with “background-
   size: cover” got disabled on mobile devices due to performance reasons.
 * I’ve tried some alternatives but nothing seems to work like on my current PC 
   version and i’m quite bad with HTML/CSS/PHP …
 * Can you help me please ?
 * + here’s the link of my website which is great on PC/Mac :
    [My website](http://www.osgames.ca)
 * ++ If it is possible to keep the scrolling effect from the background image, 
   I would love that, but if not, don’t bother with that ! 😉
 * Thanks
 *  – Fred

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/background-attachment-fixed-for-background-image/#post-5989538)
 * Hi,
 * Can you tell me how does it act weird? It’s looking fine on my side. 🙂
 * Regards,
    Hardeep
 *  Thread Starter [ReHackt](https://wordpress.org/support/users/rehackt/)
 * (@rehackt)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/background-attachment-fixed-for-background-image/#post-5989547)
 * On PC/Mac it looks great, even in small sized screen. But, on tablets/phones 
   there’s some problems with the header’s/footer’s background image.
 * The header’s image doesn’t shows up and the texture of the footer’s background
   looks blurry.
 * Did you test it on a mobile device ? 🙂
 * Thx for your help !
 * -Fred
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/background-attachment-fixed-for-background-image/#post-5989576)
 * Hi,
 * I just did, on my Android, and it still looked normal. Please include screenshots
   so I could see what you’re talking about. 🙂
 * Regards,
    Hardeep
 *  Thread Starter [ReHackt](https://wordpress.org/support/users/rehackt/)
 * (@rehackt)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/background-attachment-fixed-for-background-image/#post-5989580)
 * **Header :**
 * [Mobile devices](http://hpics.li/c0a1646)
 * [PC/MAC](http://hpics.li/79d7b50)
 * **Footer :**
 * [Mobile devices](http://hpics.li/b247390)
 * [PC/MAC](http://hpics.li/0d388f8)
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/background-attachment-fixed-for-background-image/#post-5989617)
 * Hi,
 * We can fix this by adding background-size: 100%; but your background image’s 
   height is very narrow, so can you use an image big in size? 🙂
 * Regards,
    Hardeep
 *  Thread Starter [ReHackt](https://wordpress.org/support/users/rehackt/)
 * (@rehackt)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/background-attachment-fixed-for-background-image/#post-5989624)
 * Does not seems to work for me.. :/
 * Maybe I don’t know where to put “background-size : 100%;” in my css ..
    Where
   did you put it ? 🙂
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/background-attachment-fixed-for-background-image/#post-5989637)
 * Put this, using Simple Custom CSS plugin, to your WordPress:
 *     ```
       body {
           background-size : 100% !important;
       }
       ```
   
 * Regards,
    Hardeep
 *  Thread Starter [ReHackt](https://wordpress.org/support/users/rehackt/)
 * (@rehackt)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/background-attachment-fixed-for-background-image/#post-5989640)
 * I love you ! 🙂
    Thx for you patience and your implication, you are the best !
   😛
 * – Fred
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/background-attachment-fixed-for-background-image/#post-5989656)
 * Is it working now? 🙂
 *  Thread Starter [ReHackt](https://wordpress.org/support/users/rehackt/)
 * (@rehackt)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/background-attachment-fixed-for-background-image/#post-5989658)
 * Yes it is ! 🙂

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘background-attachment: fixed for background image’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/zerif-lite/1.8.5.49/screenshot.
   png)
 * Zerif Lite
 * [Support Threads](https://wordpress.org/support/theme/zerif-lite/)
 * [Active Topics](https://wordpress.org/support/theme/zerif-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/zerif-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/zerif-lite/reviews/)

## Tags

 * [background](https://wordpress.org/support/topic-tag/background/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [mobile](https://wordpress.org/support/topic-tag/mobile/)
 * [tablets](https://wordpress.org/support/topic-tag/tablets/)

 * 10 replies
 * 2 participants
 * Last reply from: [ReHackt](https://wordpress.org/support/users/rehackt/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/background-attachment-fixed-for-background-image/#post-5989658)
 * Status: resolved