Use line-clamp to limit the numbers of lines a text can take. The value defines the maximum number of lines that the text can take up.
p {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}text-overflow: ellipsisis optional, it just shows three dots after the cut-off textdisplay: -webkit-boxand-webkit-box-orient: verticalare mandatory for WebKit browsers