# Image occlusion issue

**URL:** <https://forums.ankiweb.net/t/image-occlusion-issue/23399>\
**Category:** Add-ons\
**Created:** [September 25, 2022, 8:30pm UTC](https://forums.ankiweb.net/t/image-occlusion-issue/23399 "2022-09-25T20:30:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChowRachit](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@ChowRachit](https://forums.ankiweb.net/u/ChowRachit)\
**Post date:** [September 25, 2022, 8:30pm UTC](https://forums.ankiweb.net/t/image-occlusion-issue/23399/1 "2022-09-25T20:30:23Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/0/0b149850afb62cbf1f82cf4d6f45304a7d119fb1.png)  
I was trying to style the card but the overlay and image do not align  
is there a problem with the code?

---

<div class="post-metadata">

**Author:** ![glutanimate](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/glutanimate/32/97_2.png) [@glutanimate](https://forums.ankiweb.net/u/glutanimate)\
**Post date:** [October 4, 2022, 3:35pm UTC](https://forums.ankiweb.net/t/image-occlusion-issue/23399/2 "2022-10-04T15:35:09Z")

</div>

Yes, it looks like the changes to the template affected the mask alignment. Honestly, if your changes weren’t extensive, I would just try restoring the original templates: [Troubleshooting · glutanimate/image-occlusion-enhanced Wiki · GitHub](https://github.com/glutanimate/image-occlusion-enhanced/wiki/Troubleshooting#card-template)

You could then go back to the template and add your changes, but please do so as new CSS rules after the `/* OCCLUSION CSS END */` marker. That’s safer and makes issues like this less likely.
