CSS font-size property for text-overlflow?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
6 views
Tried to compile for mobile devices, it is necessary that the word does not fit on the width of the block is not tolerated, and adjusted in width(reduced font size). Maybe there are some tricks?
by | 6 views

2 Answers

0 like 0 dislike
no, I think in CSS there is nothing similar. overlflow can only cut text in different variations.
\r
Most likely this can be realized only on JS — consider the width of the cell, then the number of characters * average character width when, for example, 12px and, accordingly, reduce the size of the text.
\r
But in General this option will be teeming with shoals of different sizes of the font is generally ugly, and not the fact that is very small font people will read it. It is better to think in the direction of the buttons "next", floating cell size in height or display the full text when "pointing" to a specific cell, etc.
by
0 like 0 dislike
So what's the problem? specify the text size in %
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
4 answers
0 like 0 dislike
5 answers
asked Mar 26, 2019 by Matrosked
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
25,699 users