# HTML Page Demo is Broken

**URL:** <https://forum.babylonjs.com/t/html-page-demo-is-broken/39280>\
**Category:** Questions\
**Created:** [March 22, 2023, 11:41pm UTC](https://forum.babylonjs.com/t/html-page-demo-is-broken/39280 "2023-03-22T23:41:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdotpup](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pdotpup/32/37958_2.png) [@pdotpup](https://forum.babylonjs.com/u/pdotpup)\
**Post date:** [March 22, 2023, 11:41pm UTC](https://forum.babylonjs.com/t/html-page-demo-is-broken/39280/1 "2023-03-22T23:41:44Z")

</div>

The following demo appears broken. After download and execute it’s a blank page. Any ideas or suggestions? I don’t see any dependent variables that need changing.

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#WADD47%2350)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [March 23, 2023, 11:01am UTC](https://forum.babylonjs.com/t/html-page-demo-is-broken/39280/2 "2023-03-23T11:01:02Z")

</div>

The PG is using the fact that there is a div container with id “canvasZone” around the main canvas, which is specific to the Playground site.

You can fix the problem in the downloaded page by adding this div manually:

```auto
    <div id="canvasZone">
    <canvas id="renderCanvas"></canvas>
    </div>

```

around line 41.

---

<div class="post-metadata">

**Author:** ![pdotpup](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pdotpup/32/37958_2.png) [@pdotpup](https://forum.babylonjs.com/u/pdotpup)\
**Post date:** [March 23, 2023, 8:48pm UTC](https://forum.babylonjs.com/t/html-page-demo-is-broken/39280/3 "2023-03-23T20:48:17Z")

</div>

Nice! that worked thanks. Now that I know, i will check some other demos that didn’t work either, when I downloaded them. Maybe the problem is similar. I’m a little surprised that the PG team didn’t filter that out, or post a note somewhere conspicuous to explain the potential issue. But thanks for the assist.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [March 23, 2023, 10:01pm UTC](https://forum.babylonjs.com/t/html-page-demo-is-broken/39280/4 "2023-03-23T22:01:31Z")

</div>

Tentative PR to add this div automatically:

> <https://github.com/BabylonJS/Babylon.js/pull/13670>
>
> See https://forum.babylonjs.com/t/html-page-demo-is-broken/39280/2

---

<div class="post-metadata">

**Author:** ![pdotpup](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pdotpup/32/37958_2.png) [@pdotpup](https://forum.babylonjs.com/u/pdotpup)\
**Post date:** [April 5, 2023, 2:33am UTC](https://forum.babylonjs.com/t/html-page-demo-is-broken/39280/5 "2023-04-05T02:33:55Z")

</div>

Adding the fix above, the page displays only halfway. The other part of the solution is to add the following in the Style section of each program with similar issue:

#canvasZone { width: 100%; height: 100%;}

see this topic: [Playing around with canvasZone - #2 by Escobar](https://forum.babylonjs.com/t/playing-around-with-canvaszone/11374/2)

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [April 5, 2023, 8:49am UTC](https://forum.babylonjs.com/t/html-page-demo-is-broken/39280/6 "2023-04-05T08:49:17Z")

</div>

Thanks, this PR will fix it:

> <https://github.com/BabylonJS/Babylon.js/pull/13701>
>
> See https://forum.babylonjs.com/t/html-page-demo-is-broken/39280/4
