Moving the "container" inside the "div"

Hello guys, I cannot replicate exactly what is shown in the video. I have noticed there is are some functionality different from those shown in the video. I understand as this video is already from 2016. Anyway this is quite interesting topic see this video https://youtu.be/10SwsoYNkVc?t=809; so basically the container cannot be wrapped inside the div. There must be some other way around it. Thank you Skip