Hello everybody! Not so long ago I began to master the layout and while I have problems with the selection of tools for the task.
Now the task is to collect a large block of images into rows, under each is placed a short signature (last name, first name). I can not understand how best to do it. 
I tried flex, but I didnβt like how the blocks behave when resizing, plus there were some unclear distances between the blocks.
.box_gorozhane { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: space-around; justify-content: space-around; } .img_gorozhane { position: relative; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; text-align: center; } I also tried display: inline-block, but in this case the caption of the photo is moving.
How best to implement this?
HTML code is now
<div class=box_gorozhane> <div class=img_gorozhane> <img src=".png"> <p>Π€Π°ΠΌΠΈΠ»ΠΈΡ ΠΠΌΡ</p> </div> <div class=img_gorozhane> <img src=".png"> <p>Π€Π°ΠΌΠΈΠ»ΠΈΡ ΠΠΌΡ</p> </div> <div class=img_gorozhane> <img src=".png"> <p>Π€Π°ΠΌΠΈΠ»ΠΈΡ ΠΠΌΡ</p> </div> </div>