# Change background by tag

**URL:** <https://forums.ankiweb.net/t/change-background-by-tag/11651>\
**Category:** Card Design\
**Created:** [July 25, 2021, 3:02pm UTC](https://forums.ankiweb.net/t/change-background-by-tag/11651 "2021-07-25T15:02:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lumogas](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@Lumogas](https://forums.ankiweb.net/u/Lumogas)\
**Post date:** [July 25, 2021, 3:02pm UTC](https://forums.ankiweb.net/t/change-background-by-tag/11651/1 "2021-07-25T15:02:44Z")

</div>

Hello,

I found [this post](https://www.reddit.com/r/Anki/comments/9z8gje/a_useful_trick_for_styling_in_css_based_on_a/?utm_source=share&utm_medium=web2x&context=3) on Reddit which offers a seemingly clean way of styling cards based on tag. I wanted simply to have a different background based on the tag for starters.

However, when I apply it to the reversed card template (I would like this to be applied to all my reversed cards), nothing changes.

EDIT: Curiously, the changes are visible in Ankidroid, but not previewable on the desktop version! If I change the background using CSS on the desktop and try to preview, I don’t get an update. I am able to preview them on Ankidroid, however. Might be worth posting this on a separate thread.

Is the solution in the Reddit thread still compatible with Anki Windows 10 version 2.1.44?

What do I need to do to change my cards’ background based on tag? Is it possible?

Apologies if this has been asked multiple times before. Any help will be appreciated.

Thanks.

EDIT: It appears to be an issue with Anki on desktop. If I save changes and synchronize, I can preview the cards on Ankidroid and the changes work as expected. Might be worth checking this issue on a separate thread.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 7:39am UTC](https://forums.ankiweb.net/t/change-background-by-tag/11651/2 "2023-05-01T07:39:46Z")

</div>


