In order to clearly illustrate my need, I will provide some code here.
.wrap{
display:flex;
flex-direction:row;
align-items: center;
justify-content: flex-start;
width: 100%;
}
.img{
width: 30px;
height: 20px;
background: red;
}
.img1{
width:40px;
}
<div class='wrap'>
<div class='img img1'>
</div>
<p>
Xxxxxxxxxxxxx
</p>
</div>
<div class='wrap'>
<div class='img'>
</div>
<p>
yyyyyyyyy
</p>
</div>
<div class='wrap'>
<div class='img'>
</div>
<p>
zzzzzz
</p>
</div>
As you can see, there are 3 div and p elements. I am looking to create an equal gap between these elements. Specifically, I want to separate the red div from the text without relying on a fixed margin or padding value. Is there a more effective solution for this?