V
V
Valeri Lavrov2015-12-03 18:36:18
PHP
Valeri Lavrov, 2015-12-03 18:36:18

How can I make the text not wrap to another line, but decrease?

A number is displayed from the database, if it is large, then the part is transferred to another line. How can I make the font smaller instead?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Skorik, 2015-12-03
@Omutik

You can check the length of the number with a script and if it is greater than the specified one, change the font size with CSS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question