Embedded padding/margin in fonts

后端 未结 16 986
执念已碎
执念已碎 2021-01-08 00:56

It seems that all fonts have some sort of embedded padding or margin. By setting:

margin: 0px;
padding: 0px;

You never get what you want. D

16条回答
  •  不知归路
    2021-01-08 01:35

    you can use line-height and letter-spacing padding/margin in fonts... otherwise use custom css for each heading........

    /*use line-height*/
    .font{
    line-height: 1px; 
    letter-spacing: 1px;
    }
    

    or use custom css......

      h1{margin:1px 0;}
        h2{margin:1px 0;}
        h3{margin:1px 0;}
        h4{margin:1px 0;}
    

    using these css before use reset css .......

提交回复
热议问题