Embedded padding/margin in fonts

后端 未结 16 1235
执念已碎
执念已碎 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:25

    You can do it with line-height

    I know it's not too common in HTML5, and is more HTML4.1, but...

    
    

    and if it's really that important:

    L
    o/font>
    r
    e
    m
    

提交回复
热议问题