Is it possible to make dynamic content from database not to stretch on height in wrapping raws. Here is what I've achieved.
.main-raw {
width: 250px;
height: 100%;
display: -webkit-flex;
display: flex;
-webkit-justify-content: center;
justify-content: center;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-flex-flow: row wrap;
flex-flow: row wrap;
-webkit-align-content: flex-end;
align-content: flex-end;
}
.item-1, .item-2, .item-3 {
width: 100px;
margin: 3px;
background-color: black;
}
.item-1 {
height: 100px;
}
.item-2 {
height: 200px;
}
.item-3 {
height: 150px;
}
<div class='main-raw'>
<div class='item-1'> </div>
<div class='item-2'> </div>
<div class='item-3'> </div>
</div>