Control text length to (…) using css

 

   This is a sample text to control its length.
   .name-string{          
          white-space: nowrap;
          width: 100px;
          overflow: hidden;
          text-overflow: ellipsis;
    }

Leave a Reply