Small padding, big difference

后端 未结 7 1693
夕颜
夕颜 2021-01-05 06:26

If I only add a 1px padding to a div around a heading, then this makes apparently a huge difference (http://jsfiddle.net/68LgP/).

html:

7条回答
  •  星月不相逢
    2021-01-05 06:57

    Please see the updated CSS here

    .pad0 {
        background-color: #E9E9E9;
        padding: 0px;
        margin: 0px;
    }
    .pad1 {
        background-color: #E9E9E9;
        padding: 1px;
        margin: 0px;
    }
    
    h1
    {
        padding: 0px;
        margin: 0px;
    }
    

提交回复
热议问题