I have one container div which contain 2 dynamic height (height haven\'t been set) divs side by side , those 2 divs are content divs , sometimes one div have more content th
You can use display:table property for this:
display:table
.parent{ width:100px; display:table; border:1px solid green; } .child{ width:50px; background:blue; display:table-cell; } .child + .child{background:red;}