Is there a way of adding `space...` to the end of incomplete search result extracts
RespondidaIs there a way of adding `space...` to the end of incomplete search result extracts (as Google does), see
attached image showing some examples in Google search results.
-
You can do this:
Fix width of your search result description div not title div and add this CSS property. When your search result description is too long and will go out of div then there would be show dots as you want.
.search-result-div { text-overflow: ellipsis; /* Required for text-overflow to do anything */ white-space: nowrap; overflow: hidden; }
Thank You
-
Hi, thanks, this is a great solution and worked perfectly
Por favor, entrar para comentar.
2 Comentários