How to bind the text to the image?

This: text, picture with frame. You need to enter text in the frame, while keeping in mind that when you change the resolution the text remained in the frame. How best to implement?
5cf6540aba12c992138842.png5cf654484171e388226825.jpeg
March 23rd 20 at 19:02
1 answer
March 23rd 20 at 19:04
he has the frame and the girl one picture. - germaine commented on March 23rd 20 at 19:07
@germaine, as can be understood from the question? :) - Garth.Hilll commented on March 23rd 20 at 19:10
@germaine, If so - then the overall container for the img and text, container, position: relative, the text position: absolute - kaleigh commented on March 23rd 20 at 19:13
@kaleigh, everything is easier)) padding-right:50%; to the container - germaine commented on March 23rd 20 at 19:16

Find more questions by tags LayoutHTMLCSS