Height of parent div is zero even if it has child with finite heights
Seems like you got a case for the clearfix class. So I’m guessing you’re floating the child div and that’s why the parent div’s height is 0. When you use floats, the parent doesn’t adapt to the height of the children. You can apply the ‘clearfix’ classes to the parent of the floating elements (of … Read more