Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Truncate text using CSS3

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 247
    Comment on it

    Hi , If anybody needs to truncate the text without any server side script then it is possible using css3. We just need to add following css to container of text:

    text-overflow:ellipsis; 
    overflow: hidden;
    width: 200px
    white-space: nowrap;
    

    Even we don't need to put length of text for truncating, it will automatically add ellipsis at the end.

    Thanks.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: