I want to write the viewport width into a div inline style like so.
<div style="width:[viewportwidth]">stuff here</div>
The inline style should change as the viewport changes i.e. if I adjust the browser width, the style will change accordingly, in real-time.
I have some js that writes the viewport, but it requires an ID for document.write and thus some HTML element with that ID. I cannot figure out how to just get the viewport width in real time as the value so it can be used in a style.