I have a container of various width, and various number of boxes float inside it. All the boxes have same width
and height
.
This is a demonstration. https://jsfiddle.net/kghvmjb6/1/
I am looking for pure CSS solution if possible. Otherwise pure javascript (no jQuery) and CSS solutions are fine.
This example works fine with one line of floating boxes but fail with multiple lines, which is not I want. https://codepen.io/alexandredees/pen/ojaFr