# Anki's not rendering cards right

**URL:** <https://forums.ankiweb.net/t/ankis-not-rendering-cards-right/64299>\
**Category:** Card Design\
**Created:** [July 21, 2025, 8:42am UTC](https://forums.ankiweb.net/t/ankis-not-rendering-cards-right/64299 "2025-07-21T08:42:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunong2008](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Sunong2008](https://forums.ankiweb.net/u/Sunong2008)\
**Post date:** [July 21, 2025, 8:42am UTC](https://forums.ankiweb.net/t/ankis-not-rendering-cards-right/64299/1 "2025-07-21T08:42:50Z")

</div>

Hey folks,

I’ve turned off every add-on, so that’s not it.  
Here’s one of my card templates (I’ve translated the visible text to English but left the comments in Chinese; yeah, the code is a bit messy).  
File:[not-rendering-cards.zip](https://raw.githubusercontent.com/Sunrongguo2008/Files/main/Anki/not-rendering-cards.zip)

Problem: when I hit “Copy Blockage Coordinates”, the background is supposed to go gray… but it doesn’t.  
Weird part—if I copy-paste the Front and Styling into a plain .html file and open it in Firefox or Chrome, it works perfectly.

 ![图片](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/a/5/a5d5ecd0fb3d94d32b5b9b16aa5283f97930f7ac.jpeg)  
Cards can also be displayed perfectly in dark mode.  
 ![图片](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/d/6/d6ff3e7aa98ff43a11d626a38234b40e2f692b65.png)  
Downgraded to 25.02.7 and the glitch is still there.  
edit:In the latest 25.07.3 version, the problem still exists.  
Am I missing something obvious, or is this a Qt quirk, or straight-up an Anki bug?

Thanks!

---

<div class="post-metadata">

**Author:** ![Eltaurus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/eltaurus/32/10287_2.png) [@Eltaurus](https://forums.ankiweb.net/u/Eltaurus)\
**Post date:** [July 21, 2025, 5:03pm UTC](https://forums.ankiweb.net/t/ankis-not-rendering-cards-right/64299/2 "2025-07-21T17:03:09Z")

</div>

You need to remove the `<style>` and `</style>` tags from the start and the end of your styling code.

---

<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:** [August 20, 2025, 5:03pm UTC](https://forums.ankiweb.net/t/ankis-not-rendering-cards-right/64299/3 "2025-08-20T17:03:50Z")

</div>

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