1font-size: clamp(1rem, 2.5vw, 2rem);
2font-size: clamp(1.5rem, 2.5vw, 4rem);
3font-size: clamp(1rem, 10vw, 2rem);
1// Truncate text when it exceeds 3 lines of text using -webkit-line-clamp
2
3p {
4 overflow: hidden;
5 display: -webkit-box;
6 -webkit-box-orient: vertical;
7 -webkit-line-clamp: 3 // change 3 with any number of lines you want to set
8}