Changing HTML5 canvas to fit both horizontal and vertical screen size

I’m deploying my project to html5 and I would like to have the canvas to fit the whole browser window. The horizontal size stretches out to pretty much the whole width which is good, but I can’t find a way to get the vertical to do the same.
I’ve looked into the HTML code a bit, but I haven’t been able to find the solution.
Does anyone know how to accomplish this?

Hi !

Did you by any mean find a solution to this problem ?
I’m having the same problem as well, you can force the canvas to fit the whole screen no matter what with CSS, but then the UE4 player get deformed… Bumped into your topic, so if you found a solution… :slight_smile: