CSS properties being passed up to the parent element when the DIV is empty

前端 未结 4 718
野性不改
野性不改 2021-01-24 02:43

This problem is happening for me on IE8 and Chrome which makes me think this is a standards thing.

I am creating a site with header and menu using DIVs that do not have

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-24 03:14

    I think you're running in to margin collapsing.

    See the CSS 2.1 spec on margin collapsing for more info.

提交回复
热议问题