Can I stretch text using CSS?

后端 未结 6 2133
暖寄归人
暖寄归人 2020-11-28 03:19

Can I stretch text in CSS? I don\'t want the font to be bigger, because that makes it appear bolder than smaller text beside it. I just want to stretch the text vertically s

6条回答
  •  抹茶落季
    2020-11-28 04:20

    CSS font-stretch is now supported in all major browsers (except iOS Safari and Opera Mini). It is not easy to find a common font-family that supports expanding fonts, but it is easy to find fonts that support condensing, for example:

    font-stretch: condense;
    font-family: sans-serif, "Helvetica Neue", "Lucida Grande", Arial;
    

提交回复
热议问题