<div id="wrapper" style="width:50px; overflow:hidden;">
<span id="innerPart" style="white-space: nowrap; width: auto;">Lorem ipsum...</span>
</div>
Hello interwebs,
I'm trying to get the width the innerPart would require to be fully displayed via JS.
Tried using document.getElementById("innerPart").width;
but it is just returning null