I have a div .parentand inside it there is an unknown number of .childdivs. I need the child divs to be in a vertical grid, and they should all be equal in height. Unfortunately, I cannot use javascript for this.
I tried different combinations display: inline-blockand float: left, but I can not get the children to be the same height.
I can achieve the same height using display: table-cell, but then I came across another problem that children do not break into multiple lines if the total width exceeds the width of the container.
Is there any way to do this with pure css? I need to support IE10 + if this helps (flexbox?)
source
share