I’m sorry, but I don’t understand. I replaced <hr>
with <hr id=answer>
, and Anki scrolls to it, i.e. to the horizontal line, once the answer is shown. The gif looks good to me and works as expected.
Another problem, though it might not be relevant here, is that the HTML formatting is broken for the Back Template. A lot of <div>
tags were left open and not closed with </div>
.
{{edit:cloze:Text}}
</div>
<br><hr>
{{edit:Extra}}
<div class=editcloze style="font-size:18px;color:#fc0107;font-family:Times;font-style:;letter-spacing:-2px;position:fixed;bottom:1px;right:5px;opacity:.9;"><a href="https://docs.google.com/forms/d/e/1FAIpQLSerA_neKHlbo8U4nJEVgkcOIltPoqL8d2Fu_9Te_C9Tvy_dtg/viewform?usp=sf_link">Submit Errata Link</a><br>
Note id:{{noteid}}
<div id=text>
<div id=extra>
It might not be too big of a problem, aside of some possible styling issues, as the web browser will try to fix it somehow. In this case, the last line <div> id=extra>
will be replaced with <div id=extra></div></div></div></div>
.
On second thoughts, </div>
might produce an unexpected behaviour as it was used without any open <div>
tag before it. Maybe this is relevent to the issue with scrolling.
If you run the code through The W3C Markup Validation Service, some errors could be ignored, but it’ll report
Error Stray end tag div
.
Error End of file seen and there were open elements.
Error Unclosed element div
.
I’d suggest to replace the Back Template with something like
{{edit:cloze:Text}}
<br><hr id=answer>
{{edit:Extra}}
<div class=editcloze style="font-size:18px;color:#fc0107;font-family:Times;font-style:;letter-spacing:-2px;position:fixed;bottom:1px;right:5px;opacity:.9;"><a href="https://docs.google.com/forms/d/e/1FAIpQLSerA_neKHlbo8U4nJEVgkcOIltPoqL8d2Fu_9Te_C9Tvy_dtg/viewform?usp=sf_link">Submit Errata Link</a></div>
Note id:{{noteid}}
<div id=text></div>
<div id=extra></div>
The sample deck also contained the second note type, but it was more like Image Occlusion, there was no horizontal line, nothing to scroll for, and I ignored it.