The div will take the overflow: scroll
property from his parent i.e container and will override the position: sticky
property making the container div scrollable. position: sticky
increases the z-index of the div automatically making it stick to the top.