0
I can’t align the blocks vertically once the line is broken, they’re too far apart:
<style>
	body{
		background:black;
	}
.flex-start {
	align-self:flex-start;
}
.wrap {
	flex-wrap: wrap;
}
.container {
	background:white;
	max-width: 360px;
	margin: 0 auto;
	display:flex;
	border: 1px solid #ccc;
	height:105px;
}
.item {
	flex: 1;
	margin: 5px;
	background: tomato;
	text-align: center;
	font-size: 1.5em;
}
</style>
<section class="container wrap">
	<div class="item flex-start">bloco</div>
	<div class="item flex-start">bloco</div>
    <div class="item flex-start">bloco<br><br></div>
    <div class="item flex-start">bloco</div>
    <div class="item flex-start">bloco</div>
    <div class="item flex-start">bloco</div>
    <div class="item flex-start">bloco</div>
    <div class="item flex-start">bloco</div>
    <div class="item flex-start">bloco</div>
</section>I really want to get close to that vertical distance between the block of the previous line with the block of the posterior line. I intend to keep them close even if it contains some block of different size.
https://css-tricks.com/piecing-together-approaches-for-a-css-masonry-layout/ read you’re interested, here’s the https://masonry.desandro.com plugin/
– hugocsl