# \#div

**URL:** https://discourse.threejs.org/tag/div/761.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Fit HTLM div size with a THREE.JS mesh size](https://discourse.threejs.org/t/fit-htlm-div-size-with-a-three-js-mesh-size/53307)

<div class="topic-metadata">

**Author:** [@BlackU91](https://discourse.threejs.org/u/BlackU91)\
**Replies:** 0\
**Last updated:** [June 28, 2023, 7:45am UTC](https://discourse.threejs.org/t/fit-htlm-div-size-with-a-three-js-mesh-size/53307 "2023-06-28T07:45:38Z")

</div>

Hello, I am currently trying to fit an html div size with a mesh size. I am using Box3 to get the size of my object but it is not working and I don’t understand what I am missing. How can I get the correct size of my …

---

## [Make css3dObject div scrollable](https://discourse.threejs.org/t/make-css3dobject-div-scrollable/51540)

<div class="topic-metadata">

**Author:** [@Alexander\_Rubino](https://discourse.threejs.org/u/Alexander_Rubino)\
**Replies:** 1\
**Last updated:** [May 15, 2023, 1:29am UTC](https://discourse.threejs.org/t/make-css3dobject-div-scrollable/51540 "2023-05-15T01:29:04Z")

</div>

Hello. I have created 2 renderers, a WebGLRenderer and a CSS3DRenderer, where I both load a glb file and create a css3dobject containing a div. The problem is that I want to make this div scrollable, which kind of works…

---

## [How to access orbitcontrols trough my div with flexbox?](https://discourse.threejs.org/t/how-to-access-orbitcontrols-trough-my-div-with-flexbox/43328)

<div class="topic-metadata">

**Author:** [@espace3d](https://discourse.threejs.org/u/espace3d)\
**Replies:** 2\
**Last updated:** [October 7, 2022, 10:16am UTC](https://discourse.threejs.org/t/how-to-access-orbitcontrols-trough-my-div-with-flexbox/43328 "2022-10-07T10:16:26Z")

</div>

Hi, This example below works and in can acess to orbitcontrols, nothing to do : But with this example below combined with an “ui” div to show some special informations (level and distance). I can acess to my orbitcon…

---

## [Get canvas with ThreeJS behind al the DOM-elements](https://discourse.threejs.org/t/get-canvas-with-threejs-behind-al-the-dom-elements/37369)

<div class="topic-metadata">

**Author:** [@Arjan14](https://discourse.threejs.org/u/Arjan14)\
**Replies:** 2\
**Last updated:** [April 22, 2022, 8:37pm UTC](https://discourse.threejs.org/t/get-canvas-with-threejs-behind-al-the-dom-elements/37369 "2022-04-22T20:37:54Z")

</div>

Hello guys, How do i position the canvas that it is behind the div elements, so i can use threejs in the background? i’ve tried z-index but without success :frowning: As u can see in the picture the lighthelper (for dem…

---

## [Stupid question how to place my three.js into my main div?](https://discourse.threejs.org/t/stupid-question-how-to-place-my-three-js-into-my-main-div/32529)

<div class="topic-metadata">

**Author:** [@espace3d](https://discourse.threejs.org/u/espace3d)\
**Replies:** 1\
**Last updated:** [December 10, 2021, 10:23am UTC](https://discourse.threejs.org/t/stupid-question-how-to-place-my-three-js-into-my-main-div/32529 "2021-12-10T10:23:26Z")

</div>

Hi, I have searched the net and yet despite the many examples I can’t seem to apply it to my project. https://r105.threejsfundamentals.org/threejs/lessons/threejs-align-html-elements-to-3d Could you tell me how to in…

---

## [How to make full size div on a gltf plane geometry](https://discourse.threejs.org/t/how-to-make-full-size-div-on-a-gltf-plane-geometry/30441)

<div class="topic-metadata">

**Author:** [@whackter](https://discourse.threejs.org/u/whackter)\
**Replies:** 1\
**Last updated:** [October 1, 2021, 4:18pm UTC](https://discourse.threejs.org/t/how-to-make-full-size-div-on-a-gltf-plane-geometry/30441 "2021-10-01T16:18:24Z")

</div>

Hello, I have created a plane in blender and exported it in gltf. I want to make a div that is the same size as that plane. I was trying to do it by figuring out the width and height of that plane in pixels by multiplyi…

---

## [How can I get clicked positions in Intersection](https://discourse.threejs.org/t/how-can-i-get-clicked-positions-in-intersection/25249)

<div class="topic-metadata">

**Author:** [@Sherzod\_Mamatmurodov](https://discourse.threejs.org/u/Sherzod_Mamatmurodov)\
**Replies:** 0\
**Last updated:** [April 11, 2021, 7:02am UTC](https://discourse.threejs.org/t/how-can-i-get-clicked-positions-in-intersection/25249 "2021-04-11T07:02:09Z")

</div>

Hi, I am trying to get the size of two points, which I made by clicking an object. But The (STL) object is situated in ( \< div \< ) container which does not have 100% width and height. The container has like (W: 800px H: …

---

## [Threejs in div and resize with Transition!](https://discourse.threejs.org/t/threejs-in-div-and-resize-with-transition/21230)

<div class="topic-metadata">

**Author:** [@vacsHoai](https://discourse.threejs.org/u/vacsHoai)\
**Replies:** 3\
**Last updated:** [December 7, 2020, 2:11am UTC](https://discourse.threejs.org/t/threejs-in-div-and-resize-with-transition/21230 "2020-12-07T02:11:15Z")

</div>

Hi everyone! I am trying to put the Threejs scene inside the div tag. I create a button that when clicked will change the width of the div. I want it to have effects with transitions. How can i do that? Am I wrong or …

---

## [I cant put the threejs in a div/container;](https://discourse.threejs.org/t/i-cant-put-the-threejs-in-a-div-container/14122)

<div class="topic-metadata">

**Author:** [@Nicolas\_Morche](https://discourse.threejs.org/u/Nicolas_Morche)\
**Replies:** 4\
**Last updated:** [April 6, 2020, 4:35pm UTC](https://discourse.threejs.org/t/i-cant-put-the-threejs-in-a-div-container/14122 "2020-04-06T16:35:50Z")

</div>

I try other basic codes with div but doenst work. I want to make a canvas in which three.js decreases and is centered on the page. \<!DOCTYPE html\> \<html lang="en"\> \<head\> \<meta charset="UTF-8"\> \<meta name="v…
