K
K
kr_ilya2019-04-26 17:29:51
css
kr_ilya, 2019-04-26 17:29:51

How to make the text not get out of the block?

I know that similar questions have already been asked and there are solutions to them, but I have such a case:

If you reduce the width, then the numbers crawl out of the block.
overflow: hidden; and line breaks are not suitable. My option is to reduce the size of the text, but how to do this regardless of the number of characters in the line? That is, without reference to media , or how is it done?
(an example can be seen if you switch the codepen to mobile display in devtools and reduce the resolution. Everything is reduced in size there.)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kr_ilya, 2019-04-26
@kr_ilya

How to change font size depending on screen size?

D
Dima Pautov, 2019-04-26
@bootd

https://codepen.io/bootd/pen/bJzeYX +- customize

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question