How to reduce the font size if height and width fixed?

Looked similar to issues I understand but it's not what you need.
I have a fixed width and height and the text goes in one line no less.
All solutions are designed for a coating height and the usability of vh, vw but I cannot do that.
I need just if you have width 200px and height of 28px. If the text does not fit it needs a whole will decrease.
May met the question or the decision that true??
Thank you.
March 19th 20 at 08:31
2 answers
March 19th 20 at 08:33
try this
1. BigText
2. FitText.js
Probably I something not so do, use fixtext. But when I add the text font size is maximum which is specified in the script, the width the height is. Don't understand.. - lemuel.Kle commented on March 19th 20 at 08:36
March 19th 20 at 08:35
overflow-y: hidden;
 text-overflow: ellipsis;
 display: -webkit-box;
 -webkit-line-clamp: 1;
 -webkit-box-orient: vertical;


Cut text to 1 line. The standard procedure to account for user input.

On hearing the same idea of jumping in the dimensions of text with no design to check out, looks stupid.
Should it display all text, but thank you. - lemuel.Kle commented on March 19th 20 at 08:38

Find more questions by tags jQueryJavaScriptCSS