How to hide part of the text inside div or span ?
I have a text of 160 characters but I would like to display only first 40.
I have to have the complete text inside my div, span as I do javascript searches.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will need some javascript to create a span arround the last 120 characters that hides them. There is a CSS attribute “visibility:hidden” that can be applied to the span.
Something like that should be the result: