# Babylon background + HTML

**URL:** <https://forum.babylonjs.com/t/babylon-background-html/16669>\
**Category:** Questions\
**Created:** [December 16, 2020, 12:25pm UTC](https://forum.babylonjs.com/t/babylon-background-html/16669 "2020-12-16T12:25:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roundcircle](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@Roundcircle](https://forum.babylonjs.com/u/Roundcircle)\
**Post date:** [December 16, 2020, 12:25pm UTC](https://forum.babylonjs.com/t/babylon-background-html/16669/1 "2020-12-16T12:25:31Z")

</div>

Dear babylon community,

How easy or hard is it to have a babylon 3D scene as website background, and then have a normal html/bootstrap website on top of it? I suppose I cannot just put the code in the canvas element? How to approach this?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [December 16, 2020, 2:40pm UTC](https://forum.babylonjs.com/t/babylon-background-html/16669/2 "2020-12-16T14:40:58Z")

</div>

The canvas is just one of the DOM elements, so one can make with it everything what is possible to do.  
One can put the canvas to the background and use text and buttons over it; or use background image behind transparent canvas.  
You may find some examples at [https://babylonpress.org/](https://babylonpress.org/)

---

<div class="post-metadata">

**Author:** ![Roundcircle](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@Roundcircle](https://forum.babylonjs.com/u/Roundcircle)\
**Post date:** [December 16, 2020, 3:46pm UTC](https://forum.babylonjs.com/t/babylon-background-html/16669/3 "2020-12-16T15:46:25Z")

</div>

Thanks! So as long as I draw the canvas and put:  
canvas { width:100%;height:100%}  
as style, it will fill the space and I can just put anything on it? Also when using bootstrap or React?

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [December 16, 2020, 4:08pm UTC](https://forum.babylonjs.com/t/babylon-background-html/16669/4 "2020-12-16T16:08:33Z")

</div>

> [@Roundcircle](#):
>
> Also when using bootstrap or React?

Actually it doesn’t matter; the most important thing is the final HTML.
