Just a little heads-up if anyone ever wants to use position: fixed or position: sticky for a header, button etc. on AnkiMobile:
Issue
While elements with position: fixed/sticky will stay in a fixed position on Anki Desktop or AnkiDroid, they will scroll with the content on AnkiMobile.
This has likely something to do with the following meta tag which is found on Safari for iOS, but none of the other clients:
Sorry to revive an old thread, but I am having trouble getting a footer to remain in a constant position on the screen on AnkiMobile, even after using this method. I have attached my ābasicā card template below:
The contents of the āfooterā class are what I would like to stick to the bottom right corner of the screen. It works everywhere except iOS AnkiMobile
It seems other people have been able to get this work, so Iām not sure what Iām doing wrong. Would appreciate any input, thank you!
Since AnkiMobile is proprietary and I donāt own a Mac or use the app personally, debugging such issues is very cumbersome for me. Two years back when I posted that āsolutionā I debugged AnkiMobile through trial and error and appending console logs to the document.
I can only assume it has something to do with AnkiMobile using a single webview for the UI (header, footer) and card content. Hence when you absolutely position something to the bottom, it is actually overlayed by the footer.
I have no experience with the -webkit-fixed position, so I canāt speak to that. iOS Safari behaves differently to the desktop Chromium web toolkit, so not all things that work on one will work on the other. I suggest you start by trying to figure out the correct CSS outside of AnkiMobile, by eg. using jsfiddle.net in Safari. If it works there, thereās a decent chance it will work in AnkiMobile too.