# Modal not scrolling

**URL:** <https://community.weweb.io/t/modal-not-scrolling/7525>\
**Category:** Ask us anything\
**Created:** [March 12, 2024, 3:00am UTC](https://community.weweb.io/t/modal-not-scrolling/7525 "2024-03-12T03:00:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dorian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorian/32/13183_2.png) [@Dorian](https://community.weweb.io/u/Dorian)\
**Post date:** [March 12, 2024, 3:00am UTC](https://community.weweb.io/t/modal-not-scrolling/7525/1 "2024-03-12T03:00:10Z")

</div>

Everything appears to be set correctly and yet the page behind scrolls instead of the modal. Help please!

https://www.loom.com/embed/f040df6135574c4cac2ae06f06634830

---

<div class="post-metadata">

**Author:** ![jptrinh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jptrinh/32/1493_2.png) [@jptrinh](https://community.weweb.io/u/jptrinh)\
**Post date:** [March 12, 2024, 8:29am UTC](https://community.weweb.io/t/modal-not-scrolling/7525/2 "2024-03-12T08:29:27Z")

</div>

Max-height would be better, so that when on smaller devices, the modal doesn’t go out of screen.

I think that in the video, the content is not scrolling because the actual content doesn’t fill the 800px.

Can you check the Sizing property of what’s under Flexbox?  
 ![CleanShot 2024-03-12 at 09.27.19](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/4/4088afe266f4a0b99e13c7f6679eb8929a745ad7.png)  
If it’s set the first one, then the content will always adapt to the container — and that’s not what we want.
