I would like to set the font size Depends on the size of the container. To get container height, I tried to use the following code in JS:
after executing this code - myDivHeight is undefined. I tried to use events: load and complete, but the result is the same.
Are there other ways to get the height and width of the container after parsing html code. Maybe some advise how to set the font size, so that the text entered in the container a certain size in pixels.
myDivHeight = document.getElementById ("myDiv").offsetHeight;
after executing this code - myDivHeight is undefined. I tried to use events: load and complete, but the result is the same.
Are there other ways to get the height and width of the container after parsing html code. Maybe some advise how to set the font size, so that the text entered in the container a certain size in pixels.