I make tags for the site. Previously used display: inline-block
But it is necessary that the alignment was not on the left but in width. This can be done using flexbox.
.myclass { display: flex; flex-wrap: wrap; justify-content: space-between; } But the problem is that the last line does not look nice with justification:
And if, instead of justify-content: space-between use justify-content: flex-start , then there will be no more justification when decreasing the resolution:
Question : Is it possible to access the last line in flexbox? I need alignment to be in width, and in the last line on the left side. The solution can be implemented using javascript
Everything turned out thanks to the answer of the user Vadim Ovchinnikov , for which he thanks a lot. Here is what I needed: 


