What can I do to ensure that the dynamic div boxes automatically arrange themselves into two columns based on available space?
The sequence of the boxes is as follows:
- UND: Understanding energy
- EP1: Reservoirs and geology
- EP2: Exploration i
- EP3: Exploration ii and so forth
Currently, the boxes are set to float left within a parent div with a fixed width to display them in two columns. I have also used clear both (
div.column:nth-child(odd){ clear:both;}
) for odd elements. The third box drops down correctly, but the fourth one does not. It has too much space from the top.
Thank you, Dipender Singh