How to calculate the height and align the content?

Hello, is there any plugin to create a header and content in one unit with a fixed height?

What are we talking about https://yadi.sk/i/sSJyMGAFvUxYp
July 4th 19 at 22:49
2 answers
July 4th 19 at 22:51
Solution
well one of the easiest methods is to give for example for the header a fixed height and overflow: hidden; then you will fit in there let's say 2 lines of text. the rest will not be visible.
: I think you On to count the number of characters and add an ellipsis. - Abbey commented on July 4th 19 at 23:00
Better not to title (it is better to be completely), and for text. And the dot how to automatically put? - Abbey commented on July 4th 19 at 22:54
: css only works through white-space: nowrap; text-overflow: ellipsis; and this only works for one row) and only from the backend. - Rosendo_Hess commented on July 4th 19 at 22:57
July 4th 19 at 22:53
Solution
1.
Use Flex boxes!

2.
JS/JQ

setEqualHeight function(columns){
 var tallestcolumn = 0;
columns.each(function(){
 currentHeight = $(this).height();
 if(currentHeight > tallestcolumn){
 tallestcolumn = currentHeight;
}
});
columns.height(tallestcolumn);
}

$(document).ready(function(){
 setEqualHeight($(".wrapper . div")); /*make columns equal height*/
});

Find more questions by tags JavaScriptjQuery