O layout fica "desarrumado" porque o segundo item (amarelo) tem um height maior do que o terceiro item (verde). O float encaixa o quarto item (ciano) no espeço que sobra abaixo do terceito item.
Experimente mover a última linha do segundo item para o topo do terceito item.
.float-container {
overflow: auto;
width: 600px;
margin: 16px auto;
}
.float-item {
float: left;
width: 33.333%;
}
My uncle has a country place, that no-one knows about
He says it used to be a farm, before the Motor Law
Sundays I elude the ‘Eyes’, and hop the Turbine Freight
To far outside the Wire, where my white-haired uncle waits
Jump to the ground
As the Turbo slows to cross the borderline
Run like the wind
As excitement shivers up and down my spine
Down in his barn
My uncle preserved for me an old machine –
For fifty-odd years
To keep it as new has been his dearest dream
I strip away the old debris, that hides a shining car
A brilliant red Barchetta, from a better, vanished time
Fire up the willing engine, responding with a roar!
Tires spitting gravel, I commit my weekly crime…
Wind in my hair –
Shifting and drifting –
Mechanical music
Adrenalin surge –
Layout está ajustado.
.flex-container {
display: flex;
flex-wrap: wrap;
width: 600px;
margin: 16px auto;
}
.flex-item {
width: 33.33%;
}
My uncle has a country place, that no-one knows about
He says it used to be a farm, before the Motor Law
Sundays I elude the ‘Eyes’, and hop the Turbine Freight
To far outside the Wire, where my white-haired uncle waits
Jump to the ground
As the Turbo slows to cross the borderline
Run like the wind
As excitement shivers up and down my spine
Down in his barn
My uncle preserved for me an old machine –
For fifty-odd years
To keep it as new has been his dearest dream
I strip away the old debris, that hides a shining car
A brilliant red Barchetta, from a better, vanished time
Fire up the willing engine, responding with a roar!
Tires spitting gravel, I commit my weekly crime…
Wind in my hair –
Shifting and drifting –
Mechanical music
Adrenalin surge –