How to position floating div's with fixed widths but variable heights at the same vertical distance of each other?
Similar questions like this have been asked a lot and almost always is the answer use masonry: http://masonry.desandro.com/
Masonry is a good solution, but masonry does more than needed.
What would be a simple jquery/css solution which doesn't require a library like masonry or packery (http://packery.metafizzy.co/)?
Problem:

Intended result:

Images are from this questions: Floating divs with variable height
Related questions:
CSS Floating Divs At Variable Heights
Floating divs with variable height
Example HTML:
<style>
    #wrapper {
        width: 400px;
        overflow: hidden;   
    }
    .block {
        width: 180px;
        float: left;
        background-color: green;
        margin: 5px;
    }
</style>
<div id="wrapper">
    <div class="block" style="height:100px;">
    </div>
    <div class="block" style="height:200px;">
    </div>
    <div class="block" style="height:140px;">
    </div>
    <div class="block" style="height:70px;">
    </div>
    <div class="block" style="height:120px;">
    </div>
    <div class="block" style="height:170px;">
    </div>
</div>
 
     
     
     
     
     
 