Is it possible to keep a container fixed at the top without setting a specific height?
I have a container positioned on the body with margins all around. The container has an overflow set to auto, causing it to extend beyond the screen's height (without specifying a fixed height).
My goal is for the container to scroll up while keeping the margin visible (scrolling underneath the margin). Is there a way to achieve this without defining a height for the container?
Thank you in advance!
EDIT:
I am trying to maintain the grey margin at the top while allowing the content to scroll normally.