Last active
November 13, 2015 08:11
-
-
Save alitahashakir/94d4099c47ea437ef58f to your computer and use it in GitHub Desktop.
limit lines form css with ellipsis ...
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
.searchDesc { | |
overflow: hidden; | |
text-overflow: ellipsis; | |
display: -webkit-box; | |
-webkit-box-orient: vertical; | |
-webkit-line-clamp: 1; /* number of lines to show */ | |
line-height: 1; /* fallback */ | |
max-height: 1*1; /* fallback */ | |
} | |
Output of the above code is... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment