Cut off text in preview?


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
4 views
Please advise a solution to this problem: There is a block element design with a height of 117 pixels, it should fit the date, the title and beginning of text of the news. As the title of the article can be written in two and three rows, then calculate how many characters fit in the text field impossible.

Question: How would you advise to cut the text?


On some sites I saw that the end of the text slowly begins to fade into the background.
by | 4 views

3 Answers

0 like 0 dislike
>On some sites I saw that the end of the text slowly begins to fade into the background.
\r
overflow: hidden;
and over text to put a translucent image with the gradient
by
0 like 0 dislike
Pruning of the text was article — habrahabr.ru/blogs/css3/91500/
by
0 like 0 dislike
If you want to do everything on the client, then it is necessary to Google in the direction of the cross browser text-ellipsis
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
3 answers
asked Jun 13, 2019 by a_105_a
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
27,881 users