This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Count lines in a div with content coming dynamically

 
prakash rishi
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea what you are talking about here.

What are you trying to do exactly?Limit it to two lines and hide the rest?
 
prakash rishi
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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???
 
Yogesh Lonkar
Ranch Hand
Posts: 94
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand what your query is but hope this might help
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic