html - How to resize the font inaccordance with the div size....? -


If the name is like "David" then it comes within the allocated space .... but if its name is "John Pal Abham D'Souza "Allocated space automatically increases ..

So I need to name the space allocated by the resizing of the font. Give me a solution.

You can use jQuery to check the length of the string and the appropriate fone Can estimate in t-size, examine the rendered width and then adjust it again if necessary.

As stated above, Kieran, this will not be a stupid proof - if a name is too long then the font size will actually be smaller. Also, if there is no space in the long run, then read the text Although it will not wrap lines, it is a case of edge.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -