That title might not be very accurate but here is the situation:
I was looking for a solution as well and since my HTML gets rendered through a CMS I couldn't use the solution of the accepted answer.
So my solution is:
.teaser {
// break into new line after last element
> div:last-child {
clear: right;
}
}
.teaser {
// two colums
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
> div:nth-child(2n+1) {
clear: left;
}
}
}
.teaser {
// three colums
@media (min-width: @screen-md-min) {
> div:nth-child(3n+1) {
clear: left;
}
}
}
Hope this helps someone :-)