I am trying to design a complex nested-div hierarchical group picture directory for my office. Each child group is a nested-div inside it's parent group div.

My problem is I need the divs to hold their relative placement within the overall div nest - without wrapping to the next line. And they need to automatically expand proportional to the number of images contained in each one.

Is this possible with nested divs?