# Long math expressions go off-screen without being scrollable

**URL:** https://talk.observablehq.com/t/long-math-expressions-go-off-screen-without-being-scrollable/10730
**Category:** Feedback
**Created:** [June 28, 2026, 5:40pm UTC](https://talk.observablehq.com/t/long-math-expressions-go-off-screen-without-being-scrollable/10730 "2026-06-28T17:40:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nxrix](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/nxrix/32/9852_2.png) [@nxrix](https://talk.observablehq.com/u/nxrix)
#### Post date: [June 28, 2026, 5:40pm UTC](https://talk.observablehq.com/t/long-math-expressions-go-off-screen-without-being-scrollable/10730/1 "2026-06-28T17:40:55Z")

</div>

The title says everything.  
Can be fixed by adding things like max-width: 100% and overflow-x: auto.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/a/a526b1c1db05a1bf64036e89a9862e8fee651e1b.png)

---

<div class="post-metadata">

### Author: ![mbostock](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mbostock/32/9_2.png) [@mbostock](https://talk.observablehq.com/u/mbostock)
#### Post date: [June 28, 2026, 11:14pm UTC](https://talk.observablehq.com/t/long-math-expressions-go-off-screen-without-being-scrollable/10730/2 "2026-06-28T23:14:39Z")

</div>

Yep, I’d probably add this custom style somewhere:

```html
<style>

.katex-display {
  max-width: none;
  overflow-x: auto;
  overflow-y: hidden;
}

</style>

```
