I have a Div.And in that Content is filled up dynamically,from database. But I want to keep size of Div as much as it is sufficient to show only 2 lines of data.How to achieve this with keeping in mind all those styling and other factors in Mind??
What are you trying to do exactly?Limit it to two lines and hide the rest?
Joined: Dec 27, 2012
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???