I had a div with the id of footer. I needed to float three other divs ( div1, div2, and div3) inside this footer div. When I floated div2 and hit refresh in the browser to see my results the parent div (footer) collapsed.
A quick search brought me to this following link that fixed the problem.
The part i needed was to set the parent div to “overflow:auto;”