How do you put an image in a container so that it stays in place as the width and height increase?

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!