I have a% of parent% that is responsible for grouping certain amounts of children.
The problem is that this div must always be left-aligned, without leaving any blanks, but each parent div has a different number of child elements.
This causes each parent div to have a different height, and consequently, div
in some cases causes an element to be right-aligned, leaving a huge amount of white space to the left. That's when there's no space left over.
I'll illustrate the problem I have with two images:
Problem
Desiredsolution