Is it possible to adjust a font's vertical scaling using CSS?

前端 未结 1 1815
悲&欢浪女
悲&欢浪女 2020-12-08 06:10

I am using an embedded font for the top navigational elements on a site Helvetica65 and at 16px it is the perfect WIDTH but I need it to be about <

相关标签:
1条回答
  • 2020-12-08 06:47

    transform property can be used to scale text:

    .menu li a {
      color: #ffffff;
      text-transform: uppercase;
      text-decoration: none;
      font-family: "HelveticaNeue-Medium", sans-serif;
      font-size: 14px;
      display: inline-block;
      transform: scale(1, 1.5);
      -webkit-transform: scale(1, 1.5); /* Safari and Chrome */
      -moz-transform: scale(1, 1.5); /* Firefox */
      -ms-transform: scale(1, 1.5); /* IE 9+ */
      -o-transform: scale(1, 1.5); /* Opera */
    }
    
    0 讨论(0)
提交回复
热议问题