We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I made some div elements using the createDiv() function, and filled them with html.
It seems that the created divs have the same width as my canvas, but I want them to only be as wide as content they contain. How can I calculate the width of the content contained by the div, so I can then resize the div to the correct width?