# RW 8.2.1 Global Code/CSS not working for background image

**URL:** <https://forums.realmacsoftware.com/t/rw-8-2-1-global-code-css-not-working-for-background-image/27548>\
**Category:** RapidWeaver Classic\
**Created:** [June 27, 2019, 9:09am UTC](https://forums.realmacsoftware.com/t/rw-8-2-1-global-code-css-not-working-for-background-image/27548 "2019-06-27T09:09:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpw](https://avatars.discourse-cdn.com/v4/letter/k/b5ac83/32.png) [@kpw](https://forums.realmacsoftware.com/u/kpw)\
**Post date:** [June 27, 2019, 9:09am UTC](https://forums.realmacsoftware.com/t/rw-8-2-1-global-code-css-not-working-for-background-image/27548/1 "2019-06-27T09:09:51Z")

</div>

I am trying the 8.2.1 upgrade and my site background image is no longer working.

In version 8.0 I had the following code in the global Code/CSS entry:  
#feature { background: url(%resource(mybackground.jpg)%) no-repeat center; background-size: cover; }

This no longer works in 8.2.1.

However, in v8.2.1 if I use that same CSS in individual page HTML Code/CSS entry it works for that page.

---

<div class="post-metadata">

**Author:** ![swilliam](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/swilliam/32/14799_2.png) [@swilliam](https://forums.realmacsoftware.com/u/swilliam)\
**Post date:** [June 27, 2019, 11:04am UTC](https://forums.realmacsoftware.com/t/rw-8-2-1-global-code-css-not-working-for-background-image/27548/2 "2019-06-27T11:04:18Z")

</div>

Did you republish all from the file menu?  
Have a url?

---

<div class="post-metadata">

**Author:** ![kpw](https://avatars.discourse-cdn.com/v4/letter/k/b5ac83/32.png) [@kpw](https://forums.realmacsoftware.com/u/kpw)\
**Post date:** [June 27, 2019, 1:06pm UTC](https://forums.realmacsoftware.com/t/rw-8-2-1-global-code-css-not-working-for-background-image/27548/3 "2019-06-27T13:06:36Z")

</div>

This is happening in the designer/app. The old version 8.0 showed the header image correctly in the app (ie. eyeball mode) and simulate window.

---

<div class="post-metadata">

**Author:** ![swilliam](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/swilliam/32/14799_2.png) [@swilliam](https://forums.realmacsoftware.com/u/swilliam)\
**Post date:** [June 27, 2019, 1:16pm UTC](https://forums.realmacsoftware.com/t/rw-8-2-1-global-code-css-not-working-for-background-image/27548/4 "2019-06-27T13:16:42Z")

</div>

does mybackground.jpg actually exist in the resources?

---

<div class="post-metadata">

**Author:** ![kpw](https://avatars.discourse-cdn.com/v4/letter/k/b5ac83/32.png) [@kpw](https://forums.realmacsoftware.com/u/kpw)\
**Post date:** [June 27, 2019, 2:33pm UTC](https://forums.realmacsoftware.com/t/rw-8-2-1-global-code-css-not-working-for-background-image/27548/5 "2019-06-27T14:33:36Z")

</div>

Yes, it does.

---

<div class="post-metadata">

**Author:** ![kpw](https://avatars.discourse-cdn.com/v4/letter/k/b5ac83/32.png) [@kpw](https://forums.realmacsoftware.com/u/kpw)\
**Post date:** [June 27, 2019, 2:34pm UTC](https://forums.realmacsoftware.com/t/rw-8-2-1-global-code-css-not-working-for-background-image/27548/6 "2019-06-27T14:34:22Z")

</div>

Another problem I’m having with 8.2.1 is a very frequent unable to save error “file locked”. I save the project with a different name and it’s ok until I make another change…

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [July 28, 2019, 12:34am UTC](https://forums.realmacsoftware.com/t/rw-8-2-1-global-code-css-not-working-for-background-image/27548/7 "2019-07-28T00:34:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
