How to use CSS in conjunction with a scene

I have and would like to divide 1/2 of the page into 1) a scene, 2) an . So far, I’ve been using window.innerWidth*0.5, window.innerHeight and it works. I’m wondering if there are any additional ways that I can achieve this without changing the window’s size. I have my html and js separate; it is called using . Is there any way that I can manipulate this scene? Something like script{float: right;} (obviously not in this way-- i just want to give an idea of what I’m trying to achieve here). Thanks in advance!

I have also tried using but it displays the javascript code instead of rendering the scene. haha.

Maybe this SO answer (4th example in it) will give you some ideas:

1 Like

Thanks, I’ll give it a shot.