# StackPanel and Html

**URL:** <https://forum.babylonjs.com/t/stackpanel-and-html/28718>\
**Category:** Questions\
**Tags:** gui\
**Created:** [March 24, 2022, 7:15am UTC](https://forum.babylonjs.com/t/stackpanel-and-html/28718 "2022-03-24T07:15:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![farukcelim](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/farukcelim/32/27134_2.png) [@farukcelim](https://forum.babylonjs.com/u/farukcelim)\
**Post date:** [March 24, 2022, 7:15am UTC](https://forum.babylonjs.com/t/stackpanel-and-html/28718/1 "2022-03-24T07:15:42Z")

</div>

How do I write html in a stackpanel? That’s all I want to do, but I can’t. I request your help.

[Simple GUI in fullscreen mode | Babylon.js Playground (babylonjs-playground.com)](https://www.babylonjs-playground.com/index.html#XCPP9Y#808)

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [March 24, 2022, 9:11am UTC](https://forum.babylonjs.com/t/stackpanel-and-html/28718/2 "2022-03-24T09:11:01Z")

</div>

How do I write html in a stackpanel?

Unfotunately the simple answer is you can’t. If you would explain what you wanted to achieve by writing html in a stackpanel then, perhaps, the community could see if there were alternative ways to achieve what you want.

EDIT Just seen your other post.

> [@Shape Drawing or html export](https://forum.babylonjs.com/t/shape-drawing-or-html-export/28695):
>
> Hello, I want to draw the shape in the picture. But in babylonjs, I can’t put both a dynamic image area and a label inside the rectangle. What do you think is the easiest way to do this? I managed to draw this picture with html, but I could not reflect the html inside the rectangle. My goal is to make a tooltip. I request your help.

One way would be to use

> **[Dynamic Textures | Babylon.js Documentation](https://doc.babylonjs.com/features/featuresDeepDive/materials/using/dynamicTexture)**
>
> Learn all about dynamic textures in Babylon.js.

and use as your image. You can edit this using \<canvas\> techniques

> **[Canvas tutorial - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial)**
>
> This tutorial describes how to use the element to draw 2D graphics, starting with the basics. The examples provided should give you some clear ideas about what you can do with canvas, and will provide code snippets that may get you started in...

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [March 24, 2022, 12:53pm UTC](https://forum.babylonjs.com/t/stackpanel-and-html/28718/3 "2022-03-24T12:53:09Z")

</div>

If I may authorize myself, I would advise you to actually post your questions under a same topic. It appears you are posting related questions/issues under different topic. Now, I know you might think it’s better to do so (and it might be with other frameworks/communities) but I can assure you that in BJS forum **topics are followed and questions are answered** 🙂  
All it does, is that it eventually dilutes portions over answers over more topics, involving more people, that eventually, if they know the answer, will all tell you the same.  
i.e.: No, you can not input html in a 2D or 3D gui stackpanel (not at this moment, anyway).
