I have a grid in which there are boxes, each box has the same size and has the same layout.
What I'm trying to do is that the fields fill the entire width of the page with an even gap between them. The idea is that if the browser window moves, the box items will be recharged.
Ive looked at various ways of doing this, including using the mesh system from bootstrap 3, as well as from HERE
Ive also studied using a JS plugin for this, like Masonry, which, although it would work, seems a bit overkill, since all tile sizes are the same.
At the moment, it almost works here: http://jsfiddle.net/3xshcn7p/
The only problem with this current approach is that if the browser window is <719px but> 481, it displays only 2 of them and leaves a lot of empty space on the right side.
The same thing happens between all fields when the screen is not large enough for the next number of boxes in the line up.
Any ideas if this is achievable cleanly with help cssor would he have to use it js?
source
share