Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<style>
span {
display: inline-block;
border: 1px solid #cccccc;
padding: 9px;
width: 150px;
height: 45px;
-webkit-line-clamp: 2;
display: -webkit-box;
line-height: 1.65;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
</head>
<body>
<span>
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
</span>
</body>
</html>