By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,717 Members | 1,233 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,717 IT Pros & Developers. It's quick & easy.

Query : Counting charcters in div tag with font size

P: 1
I am facing one problem. I'm describing with one example.

I have a div tag. In div tag i am setting some text value with any font-size.
But i am not able to count the chracters which is getting fit in defined div tag.

Div tag is having some width and height.
Nov 20 '06 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 1,892
Not too clear can you post the code so we can tell what your talking about?
Nov 20 '06 #2

Expert 2.5K+
P: 4,258
If you know the maximum numbers of chars you want to display in the div and the font-size you use, you could calculate and change the div via the DOM.

Ronald :cool:
Nov 20 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.