thomasloven / lovelace-card-mod

🔹 Add CSS styles to (almost) any lovelace card
MIT License
1.06k stars 169 forks source link

Can't set background image for view #234

Closed l154 closed 1 year ago

l154 commented 1 year ago

My Home Assistant version: 22.11.4

My lovelace configuration method (GUI or yaml):

What I am doing: Changing image in background

What I expected to happen: my image in background

What happened instead: no my image in background

Minimal steps to reproduce:

red-theme: card-mod-theme: red-theme ..... card-mod-view: | :host { background: center / cover no-repeat url("/local/sean-sinclair-C_NJKfnTR5A-unsplash.jpg") fixed !important; }

End of code



Error messages from the browser console:
no errors
---

**By putting an X in the boxes ([]) below, I indicate that I:**

- [x] Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).

- [x] Have made sure I am using the latest version of the plugin.

- [x] Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.

- [x] Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.
l154 commented 1 year ago

answer: lovelace-background: none