I am having an issue with the arrangement of child elements in a parent div.
Here is the code that I am working with: JSBin
These items are collapsible panels. When all of them are collapsed, everything looks fine. However, when you expand the first or second panel, some unexpected layout changes occur.
Expanding the first panel causes the third panel to shift to the right, while expanding the second panel makes the third panel move down. Is there a way to maintain the original layout throughout?
The only solution I can think of is separating them into two different divs, but this presents challenges as I am using dynamic content and it would be difficult to divide the results into two distinct groups.