setting character width with css

前端 未结 2 1720
没有蜡笔的小新
没有蜡笔的小新 2020-12-18 21:06

I need to design a simple logo with css and everything is fine except for the letter size. Requirement is to use verdana font but with wide characters as shown in the image.

相关标签:
2条回答
  • 2020-12-18 21:36

    What you're looking for is transform:scale(x, y). For example:

    -webkit-transform:scale(2.0, 1.0);
    -moz-transform:scale(2.0, 1.0);
    -ms-transform:scale(2.0, 1.0);
    -o-transform:scale(2.0, 1.0);
    transform:scale(2.0,1.0);
    

    You kind of have to specify it for all the browsers, at least for now.

    Edit:

    I forgot to link my jsfiddle.

    0 讨论(0)
  • 2020-12-18 21:43

    Your Code-Example does not look like Verdana weight 700.

    Choosing the right

    font-family: 'Verdana'; font-weight:700;

    would give the correct result, at least on systems with Verdana installed.

    0 讨论(0)
提交回复
热议问题