Here an example http://jsfiddle.net/kSuS7/2/
It’s possible to be done with CSS/jQuery if text in .content have a long word so the .content height set to 300px and if in short text just remove the height.
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.
Via CSS you can use
max-heightinstead of height. But I’m not sure that it will work in IE 6,7 & maybe in 8 too.So alternative safe way is to use Jquery.
See JsFiddle http://jsfiddle.net/kSuS7/8/