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:
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.