I would like to create a two column layout (CSS only, no javascript).
There are a few requirements that make this complicated:
- Container starts with a specific height (e.g.
200px
) - There are two columns
- Items fill Column 1, then if more space is needed fill Column 2.
- If Column 1 & Column 2 are full, then expand the height of the container.
Detailed example here.
Good
When the container's minimum height is reached, the container expands and elements reflow between the two columns: