Chrome cuts off parts of type on the left, firefox and IE display fine. Chrome bug?

前端 未结 4 1109
隐瞒了意图╮
隐瞒了意图╮ 2020-12-20 06:05

I have a regular H3 element with a custom font (Didot from Linotype) in italic style. See:

\"clipped

4条回答
  •  春和景丽
    2020-12-20 06:54

    I fixed a similar issue to this by adding a small text indent

        text-indext: 4px;
    

    The exact indent value needed will differ depending on the font itself and the size of the font. For emample using @Nico O jsfiddle adding a 16px text indent fixes the issue.

提交回复
热议问题