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

2 댓글

  • Ifra Saqlain
    댓글 작업 고유 링크

    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
    댓글 작업 고유 링크

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

    0

댓글을 남기려면 로그인하세요.

Zendesk 제공