# Option to put long MathJax in a scrollable box

**URL:** <https://forums.ankiweb.net/t/option-to-put-long-mathjax-in-a-scrollable-box/71298>\
**Category:** Suggestions\
**Created:** [October 2, 2026, 7:28pm UTC](https://forums.ankiweb.net/t/option-to-put-long-mathjax-in-a-scrollable-box/71298 "2026-10-02T19:28:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomascheney](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@thomascheney](https://forums.ankiweb.net/u/thomascheney)\
**Post date:** [October 2, 2026, 7:28pm UTC](https://forums.ankiweb.net/t/option-to-put-long-mathjax-in-a-scrollable-box/71298/1 "2026-10-02T19:28:10Z")

</div>

Currently long MathJax functions stretch out your cards in a unwieldy way, but MathJax can be put in a scrollable box with something like the below css. However, gestures make this pretty unusable. It would be great if this was an option but with touch gestures disabled when scrolling in the box.

```auto
/* Specific target for modern MathJax v3 block elements in WebViews */
mjx-container[display="true"] {
    display: block !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
    padding-bottom: 8px; /* Room for touch-scrolling */
}

/* Fallback target for alternative rendering modes */
.MathJax_Display {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
}

```

---

<div class="post-metadata">

**Author:** ![ZornHadNoChoice](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/zornhadnochoice/32/28874_2.png) [@ZornHadNoChoice](https://forums.ankiweb.net/u/ZornHadNoChoice)\
**Post date:** [October 2, 2026, 10:36pm UTC](https://forums.ankiweb.net/t/option-to-put-long-mathjax-in-a-scrollable-box/71298/2 "2026-10-02T22:36:07Z")

</div>

Enable the new study screen from the settings. It doesn’t have the gesture problem.

---

<div class="post-metadata">

**Author:** ![thomascheney](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@thomascheney](https://forums.ankiweb.net/u/thomascheney)\
**Post date:** [October 2, 2026, 11:42pm UTC](https://forums.ankiweb.net/t/option-to-put-long-mathjax-in-a-scrollable-box/71298/3 "2026-10-02T23:42:54Z")

</div>

Thanks that is great. Last time I tried the new study screen I had some issues, but hopefully it is worked out now. In any case, the scrolling in the box works flawlessly.
