2

I use flex to align the images loaded from database, but the heights are determined by the highest images each line, how can I remove the gap vertically?

enter image description here

.imgs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items:center;
    align-content:flex-start;
    justify-content: space-around;
 }
kukkuz
  • 41,512
  • 6
  • 59
  • 95
Renee
  • 31
  • 5
  • Use,**float: left** them as they need to be next to one another. An added benefit of making s display: block is that the mysterious bottom margin disappears as well. – PLB May 04 '19 at 04:58
  • 1
    see https://stackoverflow.com/questions/44377343/ – kukkuz May 04 '19 at 06:36

0 Answers0