Is there a way of adding `space...` to the end of incomplete search result extracts

2 Comments

  • Ifra Saqlain
    Comment actions Permalink

    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

    Team

    2
  • Noah
    Comment actions Permalink

    Hi, thanks, this is a great solution and worked perfectly

    0

Please sign in to leave a comment.

Powered by Zendesk