Can I stretch text using CSS?

后端 未结 6 2134
暖寄归人
暖寄归人 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:03

    The only way I can think of for short texts like "MENU" is to put every single letter in a span and justify them in a container afterwards. Like this:

    
    

    And then the CSS:

    .menu-burger {
      width: 50px;
      height: 50px;
      padding: 5px;
    }
    
    ...
    
    .menu-burger > div {
      display: flex;
      justify-content: space-between;
    }
    

提交回复
热议问题