Skip to content

Instantly share code, notes, and snippets.

@vorvulev
Created April 23, 2020 06:50
Show Gist options
  • Save vorvulev/848a46cf53971a6c8ebf4c00dc5e9cf4 to your computer and use it in GitHub Desktop.
Save vorvulev/848a46cf53971a6c8ebf4c00dc5e9cf4 to your computer and use it in GitHub Desktop.
Multiline elipsis with overflow
.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