posted 4 years ago
The very purpose of me is to limit the content with only 2 lines visible in div, and Hide the rest. It easy to accomplish if we know how much will be font size(let say 10px),and hence we can set div height accordingly. But what if we don't know anything about styling of data. it might have 15 px or 18 px bit I still want to show only 2 lines ,this time div should accommodate itself accordingly. Any Ideas How to do this???