<div class="container">
<p class="truncateMultilineText">Philadelphia was founded in 1682 by William Penn, an English Quaker and advocate of religious freedom. The city served as the capital of the Pennsylvania Colony during the British colonial era and went on to play a historic and vital role as the central meeting place for the nation's founding fathers whose plans and actions in Philadelphia ultimately inspired the American Revolution and the nation's independence following the Revolutionary War.</p>
</div>
Source of the text: <a href="https://en.wikipedia.org/wiki/Philadelphia">Wikipedia</a>
.container {
max-width: 20rem;
}
.truncateMultilineText {
box-orient: vertical;
line-clamp: 4;
display: box;
overflow: hidden;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.