Shrinking Images

Hi Community.

I have a problem with shrinking images in Anki.

If I use the code

img {
width: auto;
height: auto;
max-width: 400px;
max-height: 400px;
}

I can perfectly control the image size in AnkiDesktop.
But if I open the same card in Anki on my Android the size of the image stays the same and doesn`t obey these newly set rules.

Even the Add-On ImageResizer doesn`t solve the problem.

How do I control the image size in Anki Android?

Thank you so much.

Mark

Without looking deeply:

Firstly try !important;: !important - CSS: Cascading Style Sheets | MDN

If that fails, use WebView debugging to see what’s going on: Development Guide · ankidroid/Anki-Android Wiki · GitHub

If this isn’t enough to get you sorted, let me know and I’ll take a deeper look

2 Likes

Thank you so much, David :slight_smile: . !important works.

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