Answer the question
In order to leave comments, you need to log in
How to put an image inside a flex container?
Good afternoon!
There is a flex container with a picture and a paragraph inside. I want to center everything vertically so that the image fits inside the container with respect to proportions (taking into account paddings). But for some reason it breaks out. The picture can be completely different sizes. What am I doing wrong?
Looks like this
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question