Skip to content

Commit 31efdfc

Browse files
docs: Add note about position relative in text documentation.
1 parent 0f7b270 commit 31efdfc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/primitives/text.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add 2d text captions to the scene.
2121
]
2222
}
2323
```
24-
<div class='center' id='graphics-container-1'></div>
24+
<div style='position: relative' class='center' id='graphics-container-1'></div>
2525
<script>
2626
drawGraphics3d(
2727
document.getElementById('graphics-container-1'),
@@ -44,3 +44,8 @@ Add 2d text captions to the scene.
4444
}
4545
);
4646
</script>
47+
48+
## Notes
49+
- Currently the text use HTML elements with
50+
`position: absolute` so the graphics container must have
51+
`position: relative` if you want to show the text.

0 commit comments

Comments
 (0)