I went through a couple of similar questions, but the answers did not work for me.
I have multiple divs and each one has a fixed width of 210px.
The container in which they reside may resize depending on the size of the user's screen. Sections should be evenly spaced horizontally at any time, and should also split the line divs into another line if there is no space.
To clarify the situation, see the figure below. 
This JS script achieved the result I want. But I do not see how this will work for my divs, which should have a fixed width.
width: calc(100% / 6);
EDIT:
The problem with JS Fiddle is that when the screen size takes place, but there is not enough space to set another div. In this case, the last div should be closer to the right.

html css
user3607282
source share