Skip to content

Instantly share code, notes, and snippets.

@yussan
Forked from vorvulev/multiline_elipsis.css
Last active October 6, 2021 13:20
Show Gist options
  • Save yussan/dcd38f4ba18f19b7b3d237ab6680d47f to your computer and use it in GitHub Desktop.
Save yussan/dcd38f4ba18f19b7b3d237ab6680d47f 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;
}
@yussan
Copy link
Author

yussan commented Sep 25, 2021

thanks for advice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment