Expanding the parent container with 100% height to account for floated content

前端 未结 6 989
清酒与你
清酒与你 2020-11-30 21:58

I\'m struggling with a client project. All of my divs have no absolute positioning, height:100% for html, body, and conta

6条回答
  •  感情败类
    2020-11-30 22:36

    You have a float in static-maincontent, which removes it from the regular flow of the content of the document, and hence static-content doesn't care about its height any more, and so won't expand to cover it. Additionally, remove height:100% for static-content.

提交回复
热议问题