Created
April 23, 2020 06:50
-
-
Save vorvulev/848a46cf53971a6c8ebf4c00dc5e9cf4 to your computer and use it in GitHub Desktop.
Multiline elipsis with overflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.block-ellipsis { | |
display: block; | |
display: -webkit-box; | |
max-width: 100%; | |
height: 43px; | |
margin: 0 auto; | |
font-size: 14px; | |
line-height: 1; | |
-webkit-line-clamp: 3; | |
-webkit-box-orient: vertical; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment