Stupid question how to place my three.js into my main div?

It’s not really a THREE problem, it’s a HTML problem.

As a quick solution replace this line 48 in “index.js”

document.body.appendChild(renderer.domElement);

with this:

const stl = renderer.domElement.style;
stl.position = "absolute";
stl.top = "0px";
stl.left = "0px";
stl.zIndex = "-1";
1 Like