vertically center screen

This commit is contained in:
2020-05-26 10:06:53 -04:00
parent a9d2908605
commit 2210792577
+6 -5
View File
@@ -7,11 +7,12 @@ body {
} }
canvas { canvas {
display: block; display: block;
margin: 25px auto; margin: auto;
position: absolute;
/* VM resolution is 800x600 */ top: 0;
width: 800px; bottom: 0;
height: 600px; left: 0;
right: 0;
/* fix fuzziness: https://stackoverflow.com/a/13492784 */ /* fix fuzziness: https://stackoverflow.com/a/13492784 */
image-rendering: optimizeSpeed; image-rendering: optimizeSpeed;