Skip to content

Commit

Permalink
docs: Add note about position relative in text documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
TiagoCavalcante committed Nov 21, 2022
1 parent 0f7b270 commit 31efdfc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/primitives/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Add 2d text captions to the scene.
]
}
```
<div class='center' id='graphics-container-1'></div>
<div style='position: relative' class='center' id='graphics-container-1'></div>
<script>
drawGraphics3d(
document.getElementById('graphics-container-1'),
Expand All @@ -44,3 +44,8 @@ Add 2d text captions to the scene.
}
);
</script>

## Notes
- Currently the text use HTML elements with
`position: absolute` so the graphics container must have
`position: relative` if you want to show the text.

0 comments on commit 31efdfc

Please sign in to comment.