Is there a way to get a box to scroll with pages inside a column?

Hello! I was wondering if there’s a way to get a box to scroll with the page inside a column.

Trying to get the section on the right to stay on the screen as I scroll down the page until it runs out of room.

I would use position sticky for this. It was created exactly for this type of functionality. And it is also intelligent if you scroll past the parent that it will stop at the bottom of the parent. https://www.digitalocean.com/community/tutorials/css-position-sticky

Concept: left and right column are in a container. Right column has position sticky and as you scroll down it will stay where you set it (ex: top = 0)

Yes thank you very much. Your concept is perfect for my setup. :+1:

You’re welcome