http://stackoverflow.com/questions/118241/calculate-text-width-with-javascript
Create div with following style:
position: absolute;
visibility: hidden;
height: auto;
width: auto;
hiddenEle.style.fontSize = fontSize;
var height = ( hiddenEle.clientHeight + 1) + "px";
var width = ( hiddenEle.clientWidth + 1) + "px";
Title:
javascript - calculate width string
Description:
http://stackoverflow.com/questions/118241/calculate-text-width-with-javascript Create div with following style: position: absolute; visi...
...
Rating:
4