# HTML5 game screen is small

**URL:** <https://forums.unrealengine.com/t/html5-game-screen-is-small/383854>\
**Category:** Platform & Builds\
**Tags:** quality, HTML5, quality-settings, resolution-scale, unreal-engine, question\
**Created:** [February 3, 2017, 7:39pm UTC](https://forums.unrealengine.com/t/html5-game-screen-is-small/383854 "2017-02-03T19:39:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_5be95aeb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5be95aeb](https://forums.unrealengine.com/u/anonymous_user_5be95aeb)\
**Post date:** [February 3, 2017, 7:39pm UTC](https://forums.unrealengine.com/t/html5-game-screen-is-small/383854/1 "2017-02-03T19:39:20Z")

</div>

Hi My HTML5 game is coming out as a small screen with a black screen behind. Also, the quality for my game is really bad. I have adjusted the quality in the settings to epic but its still very poor. Please let me know how I can fix this.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_62063234](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_62063234](https://forums.unrealengine.com/u/anonymous_user_62063234)\
**Post date:** [February 3, 2017, 7:40pm UTC](https://forums.unrealengine.com/t/html5-game-screen-is-small/383854/2 "2017-02-03T19:40:44Z")

</div>

Does this help?: [WebGL and Resolution Errors in HTML5 - Platform & Builds - Epic Developer Community Forums](https://answers.unrealengine.com/questions/530115/webgl-and-resolution-errors-in-html5.html)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5be95aeb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5be95aeb](https://forums.unrealengine.com/u/anonymous_user_5be95aeb)\
**Post date:** [February 3, 2017, 7:47pm UTC](https://forums.unrealengine.com/t/html5-game-screen-is-small/383854/3 "2017-02-03T19:47:53Z")

</div>

Not really. The quality is horrible I’ve changed the settings to epic still no good quality. And if I move the browser window it doesn’t scale with the browser. It goes small with the black screen behind it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [February 7, 2017, 10:33pm UTC](https://forums.unrealengine.com/t/html5-game-screen-is-small/383854/4 "2017-02-07T22:33:02Z")

</div>

Naveen S.,

- Could you please provide me with screenshots of what you’re seeing?
- What version of Chrome or Firefox are you on?
- Have you tried both Chrome and Firefox?
- Which version of the engine are you in?

Looking forward to hearing from you, thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f0fea7ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f0fea7ad](https://forums.unrealengine.com/u/anonymous_user_f0fea7ad)\
**Post date:** [February 9, 2017, 7:22am UTC](https://forums.unrealengine.com/t/html5-game-screen-is-small/383854/5 "2017-02-09T07:22:33Z")

</div>

Can you post a screenshot from a native build? The odd fringe coloring thing looks like perhaps a shader issue on postprocessing or similar.

Does the issue occur on all exported projects or just on this one?

---

<div class="post-metadata">

**Author:** ![HaxO](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/haxo/32/1008648_2.png) [@HaxO](https://forums.unrealengine.com/u/HaxO)\
**Post date:** [February 9, 2017, 4:18pm UTC](https://forums.unrealengine.com/t/html5-game-screen-is-small/383854/6 "2017-02-09T16:18:12Z")

</div>

Hey, Naveen!

Here is what I did to solve this issue: [https://answers.unrealengine.com/questions/539373/html5-windowed.html](https://answers.unrealengine.com/questions/539373/html5-windowed.html)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5be95aeb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5be95aeb](https://forums.unrealengine.com/u/anonymous_user_5be95aeb)\
**Post date:** [February 10, 2017, 3:33am UTC](https://forums.unrealengine.com/t/html5-game-screen-is-small/383854/7 "2017-02-10T03:33:37Z")

</div>

I need to AUTO scale it though. When I put it in the browser it should fit the window automatically to any pixel.

And for some reason the link you sent me still didn’t work. Thank you though.

---

<div class="post-metadata">

**Author:** ![jplanders](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jplanders](https://forums.unrealengine.com/u/jplanders)\
**Post date:** [February 10, 2017, 4:21pm UTC](https://forums.unrealengine.com/t/html5-game-screen-is-small/383854/8 "2017-02-10T16:21:46Z")

</div>

Ultimately this comes down to a little css as HaxO’s answer suggests.

I just edited the .html file that was produced after building to get what you were requesting…

in the .wrapper make sure you have the two following values { min-height: 100%; min-width: 100%; }

Then in the #canvas:not([fullscreen]) make sure to set { width: 100%; }

If something isn’t correct, try to be a little more descriptive than “it doesn’t work” so we can try to address it accordingly.
