Looking to create a Unity WebGL build that allows for specifying width and height in the HTML template.
How can I dynamically set the width of div id="gameContainer" based on the browser window width to ensure it always fills the space?
.webgl-content * {
border: 0;
margin: 0;
padding: 0
}
.webgl-content {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
... (the CSS code was not altered) ...
</body>