Why is this inline-block element pushed downward?

前端 未结 8 993
别那么骄傲
别那么骄傲 2020-11-21 04:45

Following is my code and I want to understand that why #firstDiv is being pushed downward by all browsers. I really want to understand the inner wo

8条回答
  •  无人共我
    2020-11-21 05:12

    Try adding padding:0; to the body and removing the margin of your divs.

    Add background-color:*any color aside from background* to check the difference.

提交回复
热议问题