I have many float items with different heights inside one container.
I want that the items will fill the container without any spaces (white areas)
but it's not working for me.
I have the code on the Fiddle below:
https://jsfiddle.net/bhvgctsm/1/
body {
width : 400px;
}
.div100 {
float: right;
height : 60px;
width :48%;
background-color : red;
border : 1px solid black;
}
.div200 {
float: right;
height : 100px;
width :48%;
background-color : blue;
border : 1px solid black;
}
.left {
float : left;
width : 48%;
}
<body>
<div class="left">
<div class="div100"></div>
<div class="div200"></div>
<div class="div200"></div>
<div class="div100"></div>
<div class="div200"></div>
</div>
</body>