Skip to content

Instantly share code, notes, and snippets.

@jerrybendy
Created December 6, 2018 09:30
Show Gist options
  • Save jerrybendy/ff64a9f4a8b590f33ed05bf427f32986 to your computer and use it in GitHub Desktop.
Save jerrybendy/ff64a9f4a8b590f33ed05bf427f32986 to your computer and use it in GitHub Desktop.
CSS Multiple Line Overflow
div {
overflow : hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2; /* should be the line count limited */
-webkit-box-orient: vertical;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment