CSS Text underlining too long when letter-spacing is applied?

前端 未结 7 1201
别那么骄傲
别那么骄傲 2020-11-29 11:00


Whenever letter-spacing is applied to something with an underline or a bottom border, it seems like the underline extends beyond the text on the right. Is

7条回答
  •  猫巷女王i
    2020-11-29 11:39

    As far as I know, there’s nothing you can do about this. I guess most browsers add letter spacing after each letter, including the last one. There aren’t any CSS properties that offer finer control over letter spacing.

    This seems to solve the issue, sort-of, in Firefox 3.6 on my Mac, but it’s not super-practical to do this for every underlined element either.

    
        Test
    
    

提交回复
热议问题