Okay. This has been frustrating me and I cannot find the answer anywhere (and I have been looking).
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-4">Content block 1</div>
<div class="col-xs-12 col-sm-4">Content block 2 Content block 2 Content block 2 Content block 2 Content block 2</div>
<div class="col-xs-12 col-sm-4">Content block 3</div>
<div class="col-xs-12 col-sm-4">Content block 4 </div>
</div>
</div>
If you run the code, Content Block 4 should start on a new line clearing content 1, content 2 and content 3. Instead, it sits under content 3.
What I am looking for is some way to get the divs to clear all of the boxes on the left as soon as it gets to the end. I know I could put a clear both after the third div and I know that works. The issue is that bootstrap supports 4 different layouts so it has to be able to respond to all sizes xs, sm, md and lg. Sure I could write a php script to calculate and write targetted clear divs for each of the four but there has to be an easier way. It could be a simple CSS inclusion and I have looking and looking and looking.
Any ideas would really be appreciated.