A
A
AlpineMilk2020-04-30 20:15:46
css
AlpineMilk, 2020-04-30 20:15:46

How to set text height?

How to set height for text only? Why is the height stretched so much?
5eab079ac6975195959425.png

PS
If you reduce the line-height then the lines run into each other
5eab0f32954b9163613727.png

PS 25eab12b00aa76698118997.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Ankhena, 2020-04-30
@AlpineMilk

This is a font in which the numbers are below the letters.
You can compensate for this by positioning (and directly by shifting or indenting).
For example: https://jsfiddle.net/n8d1ayhu/
Frames for clarity, the minimum height is the first one that came to mind, correct it for the layout.

I
Irina Kirillova, 2020-04-30
@keira_YES

Try to make line-height less than font-size, there will still be no numbers in 2 lines

L
Lord_Dantes, 2020-04-30
@Lord_Dantes

How to set height for text only? Why is the height stretched so much?

line-height: 1;
Because you set the height.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question